9.1

CVE-2024-7774: langchain-ai langchain-ai/langchainjs Path Traversal: '\..\filename'

CVSS: 9.1v3.1CriticalAnalyzed
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 45.3% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.1/10
010
Critical · v3.1 (NVD)
EPSS score
0.56%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known 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

45%

Versus all other CVEs

30-day change

+0.01 pp

From 0.55% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.56%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

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

3 vendors · 3 products

References

5 links