CriticalGHSA-92j5-3459-qgp4CVE-2023-38896PYSEC-2023-146
LangChain vulnerable to arbitrary code execution
Published 15 Aug 2023 · Updated 27 Sept 2024
Is your project on an affected langchain?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
langchainPyPI
- Affected
- <0.0.236
- Fixed in
- 0.0.236
Update to the fixed version for your release line, for example:
pip install 'langchain>=0.0.236'Details
An issue in Harrison Chase langchain before version 0.0.236 allows a remote attacker to execute arbitrary code via the from_math_prompt and from_colored_object_prompt functions.
Is GHSA-92j5-3459-qgp4 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected langchain, and gives you the command that fixes it.
More advisories for langchain
- MediumCVE-2026-55443LangChain: Path traversal and sandbox escape in LangChain file-search middleware and loaders · 16 Jun 2026
- HighCVE-2026-45134LangSmith SDK: Public prompt pull deserializes untrusted manifests without trust boundary warning · 13 May 2026
- LowCVE-2024-8309Langchain SQL Injection vulnerability · 29 Oct 2024
- LowCVE-2024-5998No summary published · 17 Sept 2024
- MediumCVE-2024-2965Denial of service in langchain-community · 6 Jun 2024
- MediumCVE-2024-3571langchain vulnerable to path traversal · 16 Apr 2024
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-38896
- Linkgithub.com/hwchase17/langchain/issues/5872
- Linkgithub.com/hwchase17/langchain/pull/6003
- Linkgithub.com/langchain-ai/langchain/commit/8ba9835b925473655914f63822775679e03ea137
- Linkgithub.com/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e
- Packagegithub.com/langchain-ai/langchain
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-146.yaml
- Linktwitter.com/llm_sec/status/1668711587287375876
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.