CVE-2023-36189 json
langchain SQL Injection vulnerability
published 2023-07-06 3 y ago modified 2026-06-17 4 mo ago also GHSA-7q94-qpjr-xpgm , PYSEC-2023-110 , EUVD-2023-0111
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
Summary
SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.
Patch / fix
- pypi langchain 0.0.247
- github.com/langchain-ai/langchain@fab2445 commit
- github.com/hwchase17/langchain#6051 pull request
- github.com/langchain-ai/langchain#8425 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.24% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/hwchase17/langchain/issues/5923 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | langchain | <0.0.247 |
0.0.247 |
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/hwchase17/langchain/pull/6051
web, patch
-
github.com
/langchain-ai/langchain/pull/8425
web, patch
-
github.com
/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751
web
-
github.com
/hwchase17/langchain/issues/5923
web, exploit
-
gist.github.com
/rharang/9c58d39db8c01db5b7c888e467c0533f
web
-
github.com
/langchain-ai/langchain/issues/5923#issuecomment-1696053841
web
-
nvd.nist.gov
/vuln/detail/CVE-2023-36189
advisory
-
github.com
/langchain-ai/langchain/issues/5923
web, evidence
-
github.com
/langchain-ai/langchain
package
-
github.com
/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-110.yaml
web
-
github.com
/advisories/GHSA-7q94-qpjr-xpgm
advisory
Sources
- CVE List CVE-2023-36189
- GitHub Advisory GHSA-7q94-qpjr-xpgm
- NVD CVE-2023-36189
- OSV PYSEC-2023-110
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.