icon

We found results for “

CVE-2024-7774

Good to know:

icon
icon

Date: October 29, 2024

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.

Language: TYPE_SCRIPT

Severity Score

Severity Score

Weakness Type (CWE)

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CWE-22

Path Traversal: '..filename'

CWE-29

Top Fix

icon

Upgrade Version

Upgrade to version langchain - 0.2.19

Learn More

CVSS v3.1

Base Score:
Attack Vector (AV): NETWORK
Attack Complexity (AC): LOW
Privileges Required (PR): NONE
User Interaction (UI): NONE
Scope (S): UNCHANGED
Confidentiality (C): HIGH
Integrity (I): HIGH
Availability (A): NONE

Do you need more information?

Contact Us