CVE-2024-28088: langchain-core · Path Traversal: 'dir\..\..\filename
Affects langchain-coreSource CVE Database V5
Not known to be exploited · CVSS 8.1 High : upgrade to 0.1.29 soon.
Data as of 26 Oct 2026, 11:42 UTC
- EPSS
- 1.7% chance of exploitation in 30 days – higher than 77% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.1.29
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Mar 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade langchain-core to 0.1.29.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIlangchain-corepkg:pypi/langchain-coreOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Organizations should immediately upgrade to langchain-core version 0.1.29 or later, which contains the patch that properly restricts path traversal in the load_chain function. Until upgrading, restrict access to the load_chain functionality to trusted users and environments only. Implement strict input validation and sanitization on path parameters to prevent directory traversal sequences. Employ runtime application self-protection (RASP) or web application firewalls (WAFs) with rules to detect and block directory traversal attempts. Monitor logs for suspicious access patterns involving '../' sequences or unexpected file access. Limit the permissions of the application process to the minimum necessary, preventing access to sensitive files and directories. Rotate any potentially exposed API keys and enforce usage monitoring and anomaly detection on large language model service accounts. Conduct security reviews of AI application configurations to detect unauthorized changes or malicious payloads.
Description
LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outcome can be disclosure of an API key for a large language model online service, or remote code execution. (A patch is available as of release 0.1.29 of langchain-core.)