CVE-2023-44467: Langchain experimental Langchain_experimental Vulnerable To Arbitrary Code Vulnerability
CRITICALCVE-2023-44467 is a CRITICAL (CVSS 9.8) langchain_experimental vulnerable to arbitrary code vulnerability (General Security Weakness) affecting Langchain experimental libraries in the PyPI ecosystem. The issue involves langchain_experimental vulnerable to arbitrary code execution via palchain in the python exec method. Remediation is available in the latest vendor maintenance releases.
CVE-2023-44467 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2023-44467
To remediate this vulnerability, upgrade all affected Langchain experimental dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install langchain-experimental>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show langchain-experimental
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-44467, inspect your installed packages using pip:
pip show langchain-experimental
Analyze the terminal output to locate any version of Langchain experimental in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show langchain-experimental command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Langchain experimental, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-44467 Affected Langchain experimental Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
langchain-experimental
|
PyPI |
≤ 0.0.14
|
|
References
Frequently Asked Questions
What is CVE-2023-44467?
Which Langchain experimental versions are affected?
What version fixes CVE-2023-44467?
Is langchain-experimental affected?
What is the CVSS score of CVE-2023-44467?
What CWE is associated with CVE-2023-44467?
How can I check PyPI dependencies for CVE-2023-44467?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gjjr-63x4-v8cq",
"modified" : "2025-02-24T20:47:26Z",
"published" : "2023-10-09T21:30:27Z",
"aliases" : [ "CVE-2023-44467" ],
"summary" : "langchain_experimental vulnerable to arbitrary code execution via PALChain in the python exec method",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "langchain-experimental"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.0.14"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-44467"
}, {
"type" : "WEB",
"url" : "https://github.com/langchain-ai/langchain/pull/11233"
}, {
"type" : "WEB",
"url" : "https://github.com/langchain-ai/langchain/commit/4c97a10bd0d9385cfee234a63b5bd826a295e483"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/langchain-ai/langchain"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/langchain-experimental/PYSEC-2023-194.yaml"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/langchain-experimental/0.0.14"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-10-10T21:19:42Z",
"nvd_published_at" : "2023-10-09T20:15:10Z"
}
}