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
Defensive takeaway
Validate hub identifiers against strict alphanumeric/slug allowlists and disallow relative path traversal segments in remote template loaders.
Mapped AI security techniques
- Supply Chain Compromise: Software AML.T0010.001
- Data from Local System AML.T0037
- Unsecured Credentials AML.T0055
Mapped defensive controls
- Vulnerability Scanning AML.M0016
- Input and Output Validation for AI Agent Components AML.M0033
Source citation records
- NVD Record CVE-2024-28088: LangChain load_chain Path Traversal · NIST National Vulnerability Database (NVD) ·