CVE-2023-36189
HIGH 7.5CVSS 3.1langchain SQL Injection vulnerability
SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.
- Published
- 6 Jul 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-7q94-qpjr-xpgmPYSEC-2023-110
- Sources
- NVDJSONOSV GHSA-7q94-qpjr-xpgmJSONOSV PYSEC-2023-110JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | langchain | langchaincpe:2.3:a:langchain:langchain:0.0.64:*:*:*:*:*:*:* |
= 0.0.64 | |
| OSV | PyPI | langchain | < 0.0.247 | 0.0.247 |
References
- https://gist.github.com/rharang/9c58d39db8c01db5b7c888e467c0533f · WEB
- https://github.com/hwchase17/langchain/issues/5923 · Exploit, WEB
- https://github.com/hwchase17/langchain/pull/6051 · Patch, WEB
- https://github.com/langchain-ai/langchain/issues/5923#issuecomment-1696053841 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-36189 · ADVISORY
- https://github.com/langchain-ai/langchain/issues/5923 · WEB, EVIDENCE
- https://github.com/langchain-ai/langchain/pull/8425 · WEB, FIX
- https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751 · WEB
- https://github.com/langchain-ai/langchain · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-110.yaml · WEB
- https://github.com/advisories/GHSA-7q94-qpjr-xpgm · ADVISORY
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 6 Jul 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jul 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Jul 2023)