Quick answers
- Is CVE-2023-36188 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2023-36188 being exploited in the wild.
- How severe is CVE-2023-36188?
- Critical severity, with a CVSS score of 9.8, published 6 July 2023.
- Which products and versions are affected?
- langchain (PyPI) < 0.0.247, ECOSYSTEM:introduced=0,fixed=0.0.247.
- Is there a fix for CVE-2023-36188?
- Yes. langchain (PyPI): upgrade to 0.0.247 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2023-36188 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2023-36188?
- Check whether you run langchain (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- langchain (PyPI): upgrade to 0.0.247 or later
pip install "langchain>=0.0.247"
Technical details
A remote code execution (RCE) vulnerability exists in LangChain due to improper neutralization of special elements used in downstream components (CWE-74). The flaw is located within the PALChain parameter of the Python exec method, where externally-influenced input is insufficiently sanitized before being executed. A remote, unauthenticated attacker can exploit this by providing crafted input that triggers arbitrary command execution on the host system. The vulnerability is addressed in version 0.0.247.
Affected products
- langchain-ai langchain < 0.0.247
Identifiers
- CVE-2023-36188
- GHSA-57fc-8q82-gfp3
- PYSEC-2023-109
Timeline
- 2023-07-06: advisory
- 2023-07-06: disclosed
- 2023-07-06: patched