CVE-2023-36095Langchain
Critical 9.8 No auth needed
Follow: this CVE · Langchain · Langchain We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- No
- Published
- Aug 5, 2023
- Updated
- Jul 9, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions include from_math_prompt and from_colored_object_prompt.
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.236 |
0.0.236 |
pip install "langchain>=0.0.236" |
| PyPI | langchain |
< 0.0.236 |
0.0.236 |
pip install "langchain>=0.0.236" |
Per OSV / GitHub Advisories (GHSA-gwqq-6vq7-5j86, PYSEC-2023-138). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| langchain | langchain | 0.0.194 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- github.com Exploit Issue Tracking Vendor Advisory