9.8

CVE-2024-2057: LangChain langchain_community TFIDFRetriever tfidf.py load_local server-side request forgery

Analyzed
AliasesPYSEC-2024-278
Published 01-03-2024Last modified 01-08-2024

Vulnerability summary

CVE-2024-2057 is a critical (CVSS 9.8) Server-Side Request Forgery vulnerability in langchain. EPSS estimates a 0.68% chance of exploitation in the next 30 days, higher than 53.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

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

Source freshness unavailable

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

Timeline

  1. 01-03-2024
    PublishedVulnerability first disclosed.
  2. 01-08-2024
    Last modifiedVulnerability information updated.

Description

A vulnerability was found in LangChain langchain_community 0.0.26. It has been classified as critical. Affected is the function load_local in the library libs/community/langchain_community/retrievers/tfidf.py of the component TFIDFRetriever. The manipulation leads to server-side request forgery. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 0.0.27 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-255372.

CVSS metrics

6 scores · 3 sources · 3 versions

EPSS trend

Probability

0.68%

Chance of exploitation in the next 30 days

Percentile

54%

Versus all other CVEs

30-day change

Increase +0.10 pp

From 0.58% 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
  • githubUnverified

    Vul Cve 16

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

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

Langchain2 products
PyPI1 product
  • langchain-community≤ 0.0.26

2 vendors · 3 products

References

5 links