CVE-2024-28088

HIGH

langchain < 0.1.12 and langchain-core < 0.1.30 - Path Traversal via load_chain Path Parameter

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2024-28088. PoCs published by levpachmanov.

AI-analyzed exploit summary This PoC exploits a path traversal vulnerability in LangChain's `load_chain` function to achieve remote code execution (RCE) by loading a malicious chain configuration file. It also demonstrates theft of OpenAI API keys via a Flask server mimicking an OpenAI endpoint.

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

Exploits (1)

nomisec WORKING POC
by levpachmanov · poc
https://github.com/levpachmanov/cve-2024-28088-poc

This PoC exploits a path traversal vulnerability in LangChain's `load_chain` function to achieve remote code execution (RCE) by loading a malicious chain configuration file. It also demonstrates theft of OpenAI API keys via a Flask server mimicking an OpenAI endpoint.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: LangChain (version not specified)
No auth needed
Prerequisites: Network access to the target system · LangChain library installed on the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 8.1
EPSS 0.1343
EPSS Percentile 94.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-22 CWE-31
Status published
Products (3)
langchain/langchain < 0.1.12
pypi/langchain 0 - 0.0.339PyPI
pypi/langchain-core 0 - 0.1.30PyPI
Published Mar 04, 2024
Tracked Since Feb 18, 2026