Skip to content
CriticalVulnerability

CVE-2023-39659: langchain arbitrary code execution through PythonAstREPLTool._run

Identifier
CVE-2023-39659
Published
Record updated
View JSON
Affected
  • langchain < 0.0.325
Fixed in
0.0.325
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.5%

Summary

CVE-2023-39659 affects langchain (langchain-ai) v.0.0.232 and earlier. A remote attacker can execute arbitrary code by sending a crafted script to the PythonAstREPLTool._run component. The source classifies the weakness as CWE-74, Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').

Mitigation

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