GHSA-8h5w-f6q9-wg35 json
Langchain SQL Injection vulnerability
published 3y ago modified 18d ago also CVE-2023-32785 , PYSEC-2026-372
- cvss
- 9.8
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain.
Patch / fix
- pypi langchain 0.0.247
Is GHSA-8h5w-f6q9-wg35 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | langchain | <0.0.247 |
0.0.247 |
Classification
References
-
nvd.nist.gov
/vuln/detail/CVE-2023-32785
advisory
-
github.com
/langchain-ai/langchain/issues/5923#issuecomment-1696053841
web
-
gist.github.com
/rharang/9c58d39db8c01db5b7c888e467c0533f
web
-
github.com
/langchain-ai/langchain
package
-
github.com
/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2026-372.yaml
web
-
pypi.org
/project/langchain
web, package
-
github.com
/advisories/GHSA-8h5w-f6q9-wg35
advisory
Sources
- GitHub Advisory GHSA-8h5w-f6q9-wg35
- OSV PYSEC-2026-372
Fencer Intel 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.