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

Source: https://junglewise.ai/threats/cve-2024-38459-langchain-experimental-code-execution-via-python-repl-access  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-06-16  
License: CC BY 4.0 with a link back

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)](https://junglewise.ai/threats/technologies/langchain-experimental). Vendors: [PyPI](https://junglewise.ai/threats/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

  ```sh
  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

## Related threats

- [LangChain Experimental Eval Injection vulnerability](https://junglewise.ai/threats/cve-2024-46946-langchain-experimental-eval-injection-vulnerability)
- [langchain-experimental vulnerable to Arbitrary Code Execution](https://junglewise.ai/threats/cve-2024-21513-langchain-experimental-vulnerable-to-arbitrary-code-execution)
- [LangChain Experimental vulnerable to arbitrary code execution](https://junglewise.ai/threats/cve-2024-27444-langchain-experimental-vulnerable-to-arbitrary-code-execution)
- [langchain_experimental vulnerable to arbitrary code execution via PALChain in the python exec method](https://junglewise.ai/threats/cve-2023-44467-langchain-experimental-vulnerable-to-arbitrary-code-execution-via)
