← Back to CVEs
CVE-2023-29374
CRITICAL9.8
Description
In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.
CVE Details
CVSS v3.1 Score9.8
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published4/5/2023
Last Modified2/12/2025
Sourcenvd
Honeypot Sightings0
Affected Products
langchain:langchain
Weaknesses (CWE)
CWE-74CWE-74
References
https://github.com/hwchase17/langchain/issues/1026(cve@mitre.org)
https://github.com/hwchase17/langchain/issues/814(cve@mitre.org)
https://github.com/hwchase17/langchain/pull/1119(cve@mitre.org)
https://github.com/hwchase17/langchain/issues/1026(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/hwchase17/langchain/issues/814(af854a3a-2127-422b-91ae-364da2661108)
https://github.com/hwchase17/langchain/pull/1119(af854a3a-2127-422b-91ae-364da2661108)
https://twitter.com/rharang/status/1641899743608463365/photo/1(af854a3a-2127-422b-91ae-364da2661108)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.