Langchain SQL Injection vulnerability
CVE-2023-32785 · GHSA-8h5w-f6q9-wg35 · published 2023-10-21 · updated 2026-10-27
- Severity
- Critical
- CVSS score
- 9.8
- Chance of exploitation (EPSS)
- Not scored
- Fixed in
- 0.0.247
In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain.
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 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
- Criticallangchain Code Injection vulnerabilitylangchain
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.