CVE-2024-7774
Published: 29 October 2024
Summary
CVE-2024-7774 is a critical-severity Path Traversal: '\..\filename' (CWE-29) vulnerability in Langchain Langchain.Js. Its CVSS base score is 9.1 (Critical).
Operationally, exploitation aligns with the MITRE ATT&CK technique Data from Local System (T1005); ranked in the top 30.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
This vulnerability is AI-related — categorised as AI Agent Protocols and Integrations; in the Other ATLAS/OWASP Terms risk domain; MITRE ATLAS techniques in scope: Obtain Capabilities (AML.T0016), AI Supply Chain Compromise (AML.T0010), Exfiltration via AI Inference API (AML.T0024).
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-0091
Vulnerability details
A path traversal vulnerability exists in the `getFullPath` method of langchain-ai/langchainjs version 0.2.5. This vulnerability allows attackers to save files anywhere in the filesystem, overwrite existing text files, read `.txt` files, and delete files. The vulnerability is exploited through the…
more
`setFileContent`, `getParsedFile`, and `mdelete` methods, which do not properly sanitize user input.
- CWE(s)
AI Security AnalysisAI
- AI Category
- AI Agent Protocols and Integrations
- Risk Domain
- Other ATLAS/OWASP Terms
- OWASP Top 10 for LLMs 2025
- None mapped
- Classification Reason
- LangChainJS (langchain-ai/langchainjs) is a framework for building AI applications, particularly LLM-powered agents, chains, and tool integrations, fitting 'AI Agent Protocols and Integrations'. The vulnerability is confirmed AI-related via AI/ML bug bounty context and explicit langchain-ai namespace.
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Path traversal vulnerability allows arbitrary .txt file reads (T1005, T1083), overwriting text files (T1565.001), and arbitrary file deletion (T1070.004).
MITRE ATLAS TechniquesAI
MITRE ATLAS techniques
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Validates pathnames and filenames to prevent traversal outside intended directories.