# CVE-2024-28088: LangChain directory traversal vulnerability

- Severity: High 8.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.73%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-03-03T00:00:00.000Z
- Modified: 2026-06-17T07:20:56.497Z
- Also known as: GHSA-h59x-p739-982c, PYSEC-2024-43, PYSEC-2024-45
- Weaknesses: CWE-22, CWE-31
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## 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.)

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- langchain langchain: up to 0.1.10; before 0.1.12
- langchain (PyPI): before 0.0.339; before 0.1.11
- langchain-core (PyPI): before 0.1.30; before 0.1.11

## Every score

- CISA-ADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: rating Low
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md> (exploit, third-party-advisory, web)
- <https://github.com/langchain-ai/langchain/pull/18600> (exploit, issue-tracking, patch, web)
- <https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28088> (advisory)
- <https://github.com/langchain-ai/langchain/commit/e1924b3e93d513ca950c72f8e80e1c133749fba5> (web)
- <https://github.com/langchain-ai/langchain> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain-core/PYSEC-2024-45.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2024-43.yaml> (web)
- <https://github.com/advisories/GHSA-h59x-p739-982c> (advisory)

## Sources

- CVE List: [CVE-2024-28088](https://www.cve.org/CVERecord?id=CVE-2024-28088), CVE Terms of Use, modified 2024-08-26
- GitHub Advisory Database: [GHSA-h59x-p739-982c](https://github.com/advisories/GHSA-h59x-p739-982c), CC-BY-4.0, modified 2024-12-03
- NVD: [CVE-2024-28088](https://nvd.nist.gov/vuln/detail/CVE-2024-28088), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-43](https://osv.dev/vulnerability/PYSEC-2024-43), CC-BY-4.0, modified 2024-03-13
- PyPA Advisory Database: [PYSEC-2024-45](https://osv.dev/vulnerability/PYSEC-2024-45), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-28088 · Whole record: https://cve.day/CVE-2024-28088.json · Rebuilt by cve.day 2026-11-25T22:58:37.239Z
