Bug 2373306 (CVE-2024-2965) - CVE-2024-2965 langchain-community: Langchain-community SitemapParser DoS Vulnerability
Summary: CVE-2024-2965 langchain-community: Langchain-community SitemapParser DoS Vuln...
Keywords:
Status: NEW
Alias: CVE-2024-2965
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 07:09 UTC by OSIDB Bzimport
Modified: 2025-06-18 16:40 UTC (History)
34 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 07:09:18 UTC
A Denial-of-Service (DoS) vulnerability exists in the `SitemapLoader` class of the `langchain-community` package, 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.


Note You need to log in before you can comment on or make changes to this bug.