9.1

CVE-2024-7774: Path Traversal in langchain-ai/langchainjs

Analyzed
AliasesGHSA-hc5w-c9f8-9cc4
Published 29-10-2024Last modified 29-10-2024

Vulnerability summary

CVE-2024-7774 is a critical (CVSS 9.1) Path Traversal: '\..\filename' vulnerability in langchain-ai langchain-ai/langchainjs. EPSS estimates a 0.56% chance of exploitation in the next 30 days, higher than 47.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.1/10
010
Critical · v3.1 (NVD)
EPSS score
0.56%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 0 · Related 2

Timeline

  1. 29-10-2024
    PublishedVulnerability first disclosed.
  2. 29-10-2024
    Last 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

5 scores · 3 sources · 3 versions

EPSS trend

Probability

0.56%

Chance of exploitation in the next 30 days

Percentile

48%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.56% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Langchain1 product
Langchain-ai1 product
Npm1 product
  • langchain< 0.2.19

3 vendors · 3 products

References

5 links