4.7

CVE-2024-2965: Denial-of-Service in LangChain SitemapLoader in langchain-ai/langchain

Modified
AliasesGHSA-3hjh-jh2h-vrg6PYSEC-2024-118PYSEC-2026-2561
Published 06-06-2024Last modified 15-10-2025

Vulnerability summary

CVE-2024-2965 is a medium (CVSS 4.7) Uncontrolled Recursion vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 0.30% chance of exploitation in the next 30 days, higher than 24.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

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

Source freshness unavailable

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

Timeline

  1. 06-06-2024
    PublishedVulnerability first disclosed.
  2. 15-10-2025
    Last modifiedVulnerability information updated.

Description

A Denial-of-Service (DoS) vulnerability exists in the `SitemapLoader` class of the `langchain-ai/langchain` repository, affecting all versions. The `parse_sitemap` method, responsible for parsing sitemaps and extracting URLs, lacks a mechanism to prevent infinite recursion when a sitemap URL refers to the current sitemap itself. This oversight allows for the possibility of an infinite loop, leading to a crash by exceeding the maximum recursion depth in Python. This vulnerability can be exploited to occupy server socket/port resources and crash the Python process, impacting the availability of services relying on this functionality.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.30%

Chance of exploitation in the next 30 days

Percentile

25%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.30% 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: physical access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

PyPI2 products
  • langchain< 73c42306745b0831aa6fe7fe4eeb70d2c2d87a82 | < 0.2.5
  • langchain-community< 0.2.5
Langchain1 product
Langchain-ai1 product

3 vendors · 4 products

References

9 links