langchain-ai/langchain · Security
langchain SQL Injection vulnerability
- GHSA ID
- GHSA-7q94-qpjr-xpgm
- CVE ID
- CVE-2023-36189
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v4
- 8.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Description
SQL injection vulnerability in langchain allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.
CWEs
- CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-36189 ↗
- https://github.com/hwchase17/langchain/issues/5923 ↗
- https://github.com/hwchase17/langchain/pull/6051 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-110.yaml ↗
- https://github.com/langchain-ai/langchain/issues/5923 ↗
- https://github.com/langchain-ai/langchain/pull/8425 ↗
- https://github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841 ↗
- https://gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f ↗
- https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751 ↗
- https://github.com/advisories/GHSA-7q94-qpjr-xpgm ↗