CVE-2024-2965
published medium CVSS 3.0 · 4.2Denial-of-Service in LangChain SitemapLoader in langchain-ai/langchain
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 4.2 / 10
- Severity
- medium
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:P/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| langchain-ai | langchain-ai/langchain | unspecified to < 0.2.5 (affected · custom) | @huntr_ai · cna |
| langchain | langchain | 0 and later (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-674 CWE-674 Uncontrolled Recursion
References
2Provider assertions
3@huntr_ai · cna
Denial-of-Service in LangChain SitemapLoader in langchain-ai/langchain
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 45c730aba0591dc498b697a87223a53ed1620725fd5951f0bd43a03716e37b57
- Ingested
- 23 Sep 2026, 08:21:57 UTC
- Source record
- Official CVE record