CVE-2023-36095
CRITICAL 9.8CVSS 3.1langchain Code Injection vulnerability
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.
- Published
- 5 Aug 2023
- Last modified
- 9 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-gwqq-6vq7-5j86PYSEC-2023-138
- Sources
- NVDJSONOSV GHSA-gwqq-6vq7-5j86JSONOSV PYSEC-2023-138JSON
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:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | langchain | langchaincpe:2.3:a:langchain:langchain:0.0.194:*:*:*:*:*:*:* |
= 0.0.194 | |
| OSV | PyPI | langchain | < 0.0.236 | 0.0.236 |
References
- https://github.com/hwchase17/langchain · Product, WEB
- https://github.com/langchain-ai/langchain/issues/5872 · Exploit, Issue Tracking, Vendor Advisory, WEB, EVIDENCE, REPORT, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2023-36095 · ADVISORY
- https://github.com/langchain-ai/langchain/pull/6003 · WEB
- https://github.com/langchain-ai/langchain/pull/7870 · WEB
- https://github.com/langchain-ai/langchain/commit/8ba9835b925473655914f63822775679e03ea137 · WEB
- https://github.com/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e · WEB
- https://github.com/langchain-ai/langchain · PACKAGE
- https://github.com/langchain-ai/langchain/commits/v0.0.236?after=4d8b48bdb3f17c764c5c2e3c7140071603869e74+34&branch=v0.0.236&qualified_name=refs%2Ftags%2Fv0.0.236 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-138.yaml · WEB
- http://langchain.com · WEB
- https://github.com/advisories/GHSA-gwqq-6vq7-5j86 · ADVISORY
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 5 Aug 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Aug 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Aug 2023)