PYSEC-2024-111: langchain PyPI
CVSS: 9.1v3.1CriticalPublished
Published 29-10-2024Last modified 09-10-2025
Vulnerability summary
PYSEC-2024-111 is a critical (CVSS 9.1) vulnerability in langchain PyPI.
CVSS score
9.1/10
010
Critical · v3.1 (OSV · Pypi), selected by version preferenceEPSS score
Not scored
0%100%
No EPSS score yetKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Timeline
- 29-10-2024PublishedVulnerability first disclosed.
- 09-10-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
1 score · 1 source · 1 versionCritical 9.1Preferred score · OSV · Pypi (Ecosystem advisory) · calculated from vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NSourcesSingle source
EPSS trend
No EPSS score has been published for this record yet.
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
PyPI1 product
- langchain< a0fad77d6b569e5872bd4a9d33be0c0785e538a9 | All versions (No fix recorded)
1 vendor · 1 product