- CVSS
- CRITICAL · 9.1v3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Published
- 2024-10-29
- Weakness
- CWE-29, CWE-22
- Source
- nvd.nist.gov/vuln/detail/CVE-2024-7774
Description
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 setFileContent, getParsedFile, and mdelete methods, which do not properly sanitize user input.
References
How GTK Cyber trains on this
AI security training at GTK Cyber covers the LLM and ML-pipeline vulnerability classes that vulnerabilities like CVE-2024-7774 fall into. Our hands-on courses are taught by Charles Givre and other practitioners who break and defend production AI systems.