Skip to content
CriticalVulnerabilityLLM-specific

CVE-2023-36095: langchain arbitrary code execution through PALChain python exec calls

Identifier
CVE-2023-36095
Published
Record updated
View JSON
Affected
  • langchain < 0.0.236
Fixed in
0.0.236
  • released July 19, 2023, 17 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.2%

Summary

CVE-2023-36095 affects langchain v.0.0.194. An attacker can execute arbitrary code through the python exec calls in PALChain, reached via the functions from_math_prompt and from_colored_object_prompt. The weakness is classified as CWE-94, Improper Control of Generation of Code ('Code Injection').

Mitigation

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