CVE-2023-44467: Arbitrary Code Execution in LangChain PALChain
- Vendor
- Langchain
CVE-2023-44467 is an arbitrary code execution vulnerability in LangChain Experimental's PALChain component in LangChain before version 0.0.306. PALChain executes LLM-generated Python code, but its validation fails to prohibit the import built-in. Attackers can exploit this omission to bypass the restrictions introduced for CVE-2023-36258 and execute arbitrary Python code, including through prompt-injected queries that influence generated code.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise the application process and expose data accessible to it. Arbitrary Python code can execute operating-system commands and access or exfiltrate application secrets and host data, subject to the process's permissions and execution environment.
Mitigation
If you can’t patch tonight, do this now.
Disable PALChain or prevent it from processing untrusted inputs until patched. If generated-code execution is necessary, isolate it in a sandbox with least-privilege permissions and restricted access to host resources, secrets, and networks. Do not rely on prompt instructions or code filtering alone as a security boundary.
Remediation
Patch, then assume compromise.
Upgrade LangChain to version 0.0.306 or later to obtain the fix prohibiting dangerous functions including import. Because CVE-2024-27444 subsequently bypassed these restrictions, use a release that also addresses that vulnerability: langchain-experimental 0.0.52 or later, with LangChain 0.1.8 or later where applicable. Verify the installed experimental dependency rather than relying solely on the parent package version.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2023-44467 exploited in the wild?
- Yes. As of Oct 28, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2023-44467?
- As of Oct 28, 2026, Mallory has found no public exploit for CVE-2023-44467.
- Is there a patch for CVE-2023-44467?
- Upgrade LangChain to version 0.0.306 or later to obtain the fix prohibiting dangerous functions including import. Because CVE-2024-27444 subsequently bypassed these restrictions, use a release that also addresses that vulnerability: langchain-experimental 0.0.52 or later, with LangChain 0.1.8 or later where applicable.
- What products are affected by CVE-2023-44467?
- Langchain-Experimental.
- How severe is CVE-2023-44467?
- CVE-2023-44467 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 1.0% (65th percentile) as of Oct 28, 2026.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.