CVE-2023-29374 LangChain vulnerable to code injection

Critical 9.8 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2023-29374?

CVE-2023-29374 is a critical vulnerability in n/a, published on 5 Apr 2023.

Official description

In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.

Weakness: CWE-74

Which versions are affected by CVE-2023-29374?

3 open source packages ship an affected version, including langchain. It affects 1 product.

PackageAffectedFixed in
langchain PyPIAll versions to 0.0.131None
langchain PyPIAll versions to 0.0.131None
langchain PyPIAll versions0.0.132

Products include Langchain Langchain.

How do I fix CVE-2023-29374?

Upgrade langchain to 0.0.132 or later.

Is CVE-2023-29374 being exploited?

There is no known exploitation of CVE-2023-29374 in the wild and no public exploit code.

Sources

Also known as GHSA-fprp-p869-w6q2, PYSEC-2023-18.

Is CVE-2023-29374 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free