CVE & CISA-KEV Catalog

CVE-2024-7774

CRITICAL
9.1
CVSS v3
NVD

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.

How to fix

No published remediation has been found for this vulnerability's affected products yet.

Mitigation guidance may be in the linked vendor advisories in the References section below.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Exploit Intelligence

0.55%probability of exploitation in 30 days
42ndpercentile

Moderate risk: more likely to be exploited than 42% of all known CVEs.

References

Exploit1
Embed a live status badge for CVE-2024-7774
CVE-2024-7774 severity badge

Markdown

[![CVE-2024-7774](https://tridentstack.com/cve/badge/CVE-2024-7774.svg)](https://tridentstack.com/cve/CVE-2024-7774)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-7774"><img src="https://tridentstack.com/cve/badge/CVE-2024-7774.svg" alt="CVE-2024-7774"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-05-28.