CVE-2024-2965: Denial-of-Service in langchain-community SitemapLoader
A Denial-of-Service (DoS) vulnerability exists in the SitemapLoader class of the langchain-community package, affecting all versions. The parsesitemap 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.
Other sources
Denial of service in SitemapLoader Document Loader in the langchain-community package, affecting versions below 0.2.5. The parsesitemap 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.
— GitHub
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-2965?
CVE-2024-2965 is classified as a Denial-of-Service (DoS) vulnerability.
How do I fix CVE-2024-2965?
To remediate CVE-2024-2965, upgrade the 'langchain-community' package to version 0.2.5 or higher.
Which versions are affected by CVE-2024-2965?
CVE-2024-2965 affects all versions of the 'langchain-community' package prior to 0.2.5.
What component is impacted by CVE-2024-2965?
CVE-2024-2965 specifically impacts the 'SitemapLoader' class in the 'langchain-community' package.
Can CVE-2024-2965 lead to production downtime?
Yes, CVE-2024-2965 can lead to production downtime due to its Denial-of-Service nature.