CVE-2023-36189Langchain
High 7.5 No auth needed
Follow: this CVE · Langchain · Langchain We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 63
- Auth required
- No
- Published
- Jul 6, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
SQL injection vulnerability in langchain before v0.0.247 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.
What to do
- Apply the vendor's security update for Langchain.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | langchain |
< 0.0.247 |
0.0.247 |
pip install "langchain>=0.0.247" |
| PyPI | langchain |
< 0.0.247 |
0.0.247 |
pip install "langchain>=0.0.247" |
Per OSV / GitHub Advisories (GHSA-7q94-qpjr-xpgm, PYSEC-2023-110). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| langchain | langchain | 0.0.64 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com
- github.com Exploit
- github.com Patch
- github.com