CVE-2023-36258
NVD-CWE-noinfoPublished: July 3, 2023· Updated: Jun 17, 2026
Official Description
An issue in LangChain before 0.0.236 allows an attacker to execute arbitrary code because Python code with os.system, exec, or eval can be used.
Risk Analysis
LangChain versions prior to 0.0.236 are vulnerable to arbitrary code execution because they allow the use of dangerous Python functions like os.system or eval. This critical flaw allows remote attackers to execute code on the host system.
There is no known public exploit, and it is not in the CISA KEV catalog. The vulnerability is remotely exploitable with low complexity.
Upgrade LangChain to version 0.0.236 or later and avoid passing untrusted input to functions that execute code.
Technical Analysis
CVE-2023-36258 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 9.8.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
All References (2)
Quick Facts
Related CVEs (NVD-CWE-noinfo)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2023-36258 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts