CVE-2024-7774 - CVE House
Back to Database
Status published Medium CVE-2024-7774

Path Traversal in langchain-ai/langchainjs

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-7774

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

langchain-ai

View all reports →

Affected Software

langchain-ai/langchainjs
Vulnerable Versions:
unspecified

Timeline

Official Publish: October 29th, 2024
Last Modified: October 29th, 2024
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Weaknesses (CWE)

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.