Skip to content
LangChainGHSA-8h5w-f6q9-wg35

Langchain SQL Injection vulnerability

Critical9.8CVE-2023-32785 · Published Oct 21, 2023 · updated Jun 29, 2026

In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain.

GitHub advisory

Affected versions

PackageAffectedFixed in
langchain
PyPI
< 0.0.2470.0.247
Details and references
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Severity from
GitHub (reviewed advisory)
Weakness
CWE-74, CWE-89
Also known as
CVE-2023-32785, PYSEC-2026-372

More LangChain advisories

All LangChain
Advisory
Langchain Server-Side Request Forgery vulnerability
High7.5Oct 21, 2023
LangChain Server Side Request Forgery vulnerability
High8.8Oct 19, 2023
langchain_experimental vulnerable to arbitrary code execution via PALChain in the python exec method
Critical9.8Oct 9, 2023
Langchain vulnerable to arbitrary code execution via the evaluate function in the numexpr library
Critical9.8Sep 1, 2023
langchain vulnerable to arbitrary code execution
Critical9.8Aug 22, 2023
LangChain vulnerable to arbitrary code execution
Critical9.8Aug 15, 2023

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.