Skip to content
CriticalVulnerability

CVE-2023-36258: LangChain arbitrary code execution through os.system, exec, or eval

Identifier
CVE-2023-36258
Published
Record updated
View JSON
Affected
  • langchain < 0.0.247
Fixed in
0.0.247
  • released July 28, 2023, 25 days after disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.1%

Summary

CVE-2023-36258 affects LangChain before 0.0.236. Because Python code using os.system, exec, or eval can be used, an attacker can execute arbitrary code. The NVD has not yet provided an assessment, and the source references GitHub issue 5872 and CWE-94 (Improper Control of Generation of Code).

Mitigation

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