Documented Incident · INC-2024-28088 · Elevated severity

LangChain Hub Chain Loader Path Traversal Allowing Arbitrary File Retrieval

CVE-2024-28088 revealed a directory traversal flaw in LangChain's `load_chain` hub resolution helper when fetching serialized chain configurations. Attacker-controlled chain identifier strings containing path traversal sequences could escape the intended hub directory structure and read arbitrary local configuration files or pull unintended remote artifacts. In multi-user orchestration apps accepting dynamic chain references, this exposed local secrets and credentials. Maintainers patched identifier validation to enforce strict slug allowlists.

Incident dossier metadata

Case ID
INC-2024-28088
Classification
Incident
Date
Severity
Elevated
Sector
Software Development & AI Tooling
Attack vector
Supply Chain
System type
Python LLM Chain & Prompt Hub Loaders
CVE / reference
CVE-2024-28088
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-28088

Inspect INC-2024-28088 in Interactive Incidents & Cases Hub

Defensive takeaway

Validate hub identifiers against strict alphanumeric/slug allowlists and disallow relative path traversal segments in remote template loaders.

Mapped AI security techniques

Mapped defensive controls

Source citation records