CVE-2024-38459: langchain_experimental Code Execution via Python REPL access

CVE-2024-38459 · Severity: low · CVSS 3.1 · Published 2024-06-16

langchain_experimental (aka LangChain Experimental) before 0.0.61 for LangChain provides Python REPL access without an opt-in step. NOTE; this issue exists because of an incomplete fix for CVE-2024-27444.

Technologies: langchain-experimental (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-38459 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-38459 being exploited in the wild.
How severe is CVE-2024-38459?
Low severity, with a CVSS score of 3.1, published 16 June 2024.
Which products and versions are affected?
langchain-experimental (PyPI) ECOSYSTEM:introduced=0,fixed=0.0.61, GIT:introduced=0,fixed=ce0b0f22a175139df8f41cdcfb4d2af411112009|ECOSYSTEM:introduced=0,fixed=0.0.61.
Is there a fix for CVE-2024-38459?
Yes. langchain-experimental (PyPI): upgrade to 0.0.61 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-38459?
Check whether you run langchain-experimental (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-experimental (PyPI): upgrade to 0.0.61 or later
    pip install "langchain-experimental>=0.0.61"

Affected products

  • langchain-experimental (PyPI) ECOSYSTEM:introduced=0,fixed=0.0.61, GIT:introduced=0,fixed=ce0b0f22a175139df8f41cdcfb4d2af411112009|ECOSYSTEM:introduced=0,fixed=0.0.61

Identifiers

  • CVE-2024-38459
  • GHSA-wmvm-9vqv-5qpp
  • PYSEC-2024-53

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.