CVE-2023-34541
CRITICAL 9.8CVSS 3.1Langchain vulnerable to arbitrary code execution
Langchain 0.0.171 is vulnerable to Arbitrary code execution in load_prompt.
- Published
- 20 Jun 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Also known as
- GHSA-6643-h7h5-x9whPYSEC-2023-92
- Sources
- NVDJSONOSV GHSA-6643-h7h5-x9whJSONOSV PYSEC-2023-92JSON
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 |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | langchain | langchaincpe:2.3:a:langchain:langchain:0.0.171:*:*:*:*:*:*:* |
= 0.0.171 | |
| OSV | PyPI | langchain | < 0.0.247 | 0.0.247 |
References
- https://github.com/hwchase17/langchain/issues/4849 · Exploit, Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2023-34541 · ADVISORY
- https://github.com/langchain-ai/langchain/issues/4849 · WEB, EVIDENCE, REPORT
- https://github.com/langchain-ai/langchain/issues/4849#issuecomment-1697896569 · WEB
- https://github.com/langchain-ai/langchain/pull/8425 · WEB
- https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751 · WEB
- https://github.com/langchain-ai/langchain · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-92.yaml · WEB
- https://github.com/advisories/GHSA-6643-h7h5-x9wh · ADVISORY
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 20 Jun 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Jun 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Jun 2023)