langchain arbitrary code execution vulnerability
CVE-2023-36258 · GHSA-2qmj-7962-cjq8 · published 2023-07-03 · updated 2024-11-22
- Severity
- Critical
- CVSS score
- 9.8
- Chance of exploitation (EPSS)
- 1.1%
- Fixed in
- 0.0.247
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Total
- CISA SSVC
An issue in langchain allows an attacker to execute arbitrary code via the PALChain in the python exec method.
Upgrade langchain to 0.0.247 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| langchain | PyPI | < 0.0.247 | 0.0.247 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalLangchain SQL Injection vulnerabilitylangchain
- CriticalLangchain vulnerable to arbitrary code execution via the evaluate function in the numexpr librarylangchain
- Criticallangchain vulnerable to arbitrary code executionlangchain
- CriticalLangChain vulnerable to arbitrary code executionlangchain
- CriticalLangChain vulnerable to arbitrary code executionlangchain
- CriticalLangChain vulnerable to arbitrary code executionlangchain
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.