Skip to content
CriticalVulnerabilityLLM-specific

CVE-2023-29374: LangChain LLMMathChain prompt injection leads to arbitrary code execution

Identifier
CVE-2023-29374
Published
Record updated
View JSON
Affected
  • langchain <= 0.0.131
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
39.7%

Summary

CVE-2023-29374 affects LangChain through 0.0.131. Its LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method. NIST has not yet provided an NVD assessment, and the weakness is classified as CWE-74.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.