CVE-2023-36188
CRITICAL 9.8CVSS 3.1langchain vulnerable to arbitrary code execution
An issue in langchain v.0.0.64 allows a remote attacker to execute arbitrary code via the PALChain parameter in the Python exec method.
- Published
- 6 Jul 2023
- Last modified
- 6 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-74
- Also known as
- GHSA-57fc-8q82-gfp3PYSEC-2023-109
- Sources
- NVDJSONOSV GHSA-57fc-8q82-gfp3JSONOSV PYSEC-2023-109JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | langchain | langchaincpe:2.3:a:langchain:langchain:0.0.64:*:*:*:*:*:*:* |
= 0.0.64 | |
| OSV | PyPI | langchain | < 0.0.247 | 0.0.247 |
References
- https://github.com/hwchase17/langchain/issues/5872 · Exploit
- https://github.com/hwchase17/langchain/pull/6003 · Patch
- https://nvd.nist.gov/vuln/detail/CVE-2023-36188 · ADVISORY
- https://github.com/langchain-ai/langchain/issues/5872 · WEB, EVIDENCE
- https://github.com/langchain-ai/langchain/pull/6003 · WEB
- https://github.com/langchain-ai/langchain/pull/8425 · WEB, FIX
- https://github.com/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e · WEB
- https://github.com/advisories/GHSA-57fc-8q82-gfp3 · ADVISORY
- https://github.com/langchain-ai/langchain · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-109.yaml · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 6 Jul 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jul 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Jul 2023)