cbcvebase.
CVE-2023-29374
published 2023-04-05

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

PriorityP266critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
39.65%
98.4th percentile
In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.

Affected

4 ranges
VendorProductVersion rangeFixed in
googlechrome_chrome
langchainlangchain<= 0.0.131
langchainlangchain>= 0 < 0.0.1320.0.132
langchainlangchain0 – 0.0.131

Detection & IOCsextracted from sources · hover to see the quote

  • CVE-2023-29374 involves prompt injection attacks against LangChain's LLMMathChain that result in arbitrary code execution via Python's exec method; monitor for unexpected exec() calls originating from LLM chain execution contexts.
  • CVE-2023-29374 is classified as a remote code execution vulnerability achieved through an LLM prompt injection exploit; treat untrusted LLM inputs to LLMMathChain as a potential RCE vector.
  • ·Vulnerability affects LangChain versions up to and including 0.0.131; deployments on this version range are exposed to prompt-injection-driven arbitrary code execution via LLMMathChain.
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.