Skip to main content
Mallory
CriticalVulnerability

CVE-2023-44467: Arbitrary Code Execution in LangChain PALChain

Published Oct 9, 2023 · Updated 20 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS1.0%65th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendor
Langchain
IdentifiersCVE-2023-44467CWE-94

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
LangchainLangchain-Experimentalapplication
FAQ

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.
Activity feed

Recent activity

6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.