GitHub Advisoryadvisory · PyPI
GHSA-2qmj-7962-cjq8 langchain arbitrary code execution vulnerability
CRITICAL
Official page ↗
- Aliases
- CVE-2023-36258
- Ecosystem
- PyPI
- Packages
- langchain
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-94
- Reviewed
- 2023-07-06
Affected packages
• PyPI langchain: < 0.0.247 → fixed in 0.0.247
Description
An issue in langchain allows an attacker to execute arbitrary code via the PALChain in the python exec method.
Related
Alias · CVE (1)
- CVE-2023-36258 An issue in LangChain before 0.0.236 allows an attacker to execute arbitrary code because Python code with os.system, exec, or eval can be… vulnerability
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-36258 advisory
- https://github.com/langchain-ai/langchain/issues/5872 web
- https://github.com/langchain-ai/langchain/issues/5872#issuecomment-1697785619 web
- https://github.com/langchain-ai/langchain/pull/6003 web
- https://github.com/langchain-ai/langchain/pull/7870 web
- https://github.com/langchain-ai/langchain/pull/8425 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/commit/fab24457bcf8ede882abd11419769c92bc4e7751 web
- https://github.com/hwchase17/langchain package
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-98.yaml web