CVE-2024-38459 langchain_experimental Code Execution via Python REPL access
Attackers can execute arbitrary code via Python REPL access in LangChain Experimental due to missing opt-in requirements.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-38459?
CVE-2024-38459 is a high-severity code injection vulnerability in n/a, published on 16 Jun 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-276
Which versions are affected by CVE-2024-38459?
3 open source packages ship an affected version, including langchain-experimental. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
langchain-experimental PyPI | All versions | 0.0.61 |
langchain-experimental PyPI | All versions | 0.0.61 |
langchain-experimental PyPI | All versions | 0.0.61 |
Products include Langchain Langchain-Experimental.
How do I fix CVE-2024-38459?
Upgrade langchain-experimental to 0.0.61 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-38459 being exploited?
There is no known exploitation of CVE-2024-38459 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-wmvm-9vqv-5qpp, PYSEC-2024-53.