Browse / Improper Output Handling / CVE-2023-36189
langchain SQL Injection vulnerability
- Class
- Improper Output Handling (filed by a model that read the advisory)
- Technique
- SQL and query injection
- Also involves
- Sensitive Data Disclosure
- Affected
- langchain (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 1.2% chance of exploitation in 30 days
How it works, in short
Attacker-influenced input reaching the SQL chain produces injected queries that run against the database and return sensitive records. (Our summary, written by a model. The source text is below.)
Details
SQL injection vulnerability in langchain allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-36189
- https://github.com/hwchase17/langchain/issues/5923
- https://github.com/langchain-ai/langchain/issues/5923
- https://github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841
- https://github.com/hwchase17/langchain/pull/6051
- https://github.com/langchain-ai/langchain/pull/8425
- https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751
- https://gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f
- https://github.com/langchain-ai/langchain
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-110.yaml
Source: GitHub Advisory Database, used under CC BY 4.0.