hwchase17/langchain · Security
langchain arbitrary code execution vulnerability
- GHSA ID
- GHSA-2qmj-7962-cjq8
- CVE ID
- CVE-2023-36258
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v4
- 9.3 · 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
Description
An issue in langchain allows an attacker to execute arbitrary code via the PALChain in the python exec method.
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-36258 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-98.yaml ↗
- https://github.com/langchain-ai/langchain/issues/5872 ↗
- https://github.com/langchain-ai/langchain/issues/5872#issuecomment-1697785619 ↗
- https://github.com/langchain-ai/langchain/pull/6003 ↗
- https://github.com/langchain-ai/langchain/pull/7870 ↗
- https://github.com/langchain-ai/langchain/pull/8425 ↗
- https://github.com/langchain-ai/langchain/commit/8ba9835b925473655914f63822775679e03ea137 ↗
- https://github.com/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e ↗
- https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751 ↗
- https://github.com/advisories/GHSA-2qmj-7962-cjq8 ↗