CVE-2023-44467 langchain_experimental vulnerable to arbitrary code execution via PALChain in the python exec method

Critical 9.8 Published Updated

Attackers can execute arbitrary code by bypassing previous security fixes in the LangChain experimental library via Python import mechanisms.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-44467?

CVE-2023-44467 is a critical code injection vulnerability in n/a, published on 9 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

langchain_experimental (aka LangChain Experimental) in LangChain before 0.0.306 allows an attacker to bypass the CVE-2023-36258 fix and execute arbitrary code via __import__ in Python code, which is not prohibited by pal_chain/base.py.

Which versions are affected by CVE-2023-44467?

3 open source packages ship an affected version, including langchain-experimental. It affects 1 product.

PackageAffectedFixed in
langchain-experimental PyPIAll versions to 0.0.14None
langchain-experimental PyPIAll versions to 0.0.14None
langchain-experimental PyPIAll versions0.0.15

Products include Langchain Langchain Experimental.

How do I fix CVE-2023-44467?

Upgrade langchain-experimental to 0.0.15 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-44467 being exploited?

There is no known exploitation of CVE-2023-44467 in the wild and no public exploit code.

Sources

Also known as GHSA-gjjr-63x4-v8cq, PYSEC-2023-194.

Is CVE-2023-44467 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free