CVE-2024-2965: Denial-of-Service in langchain-community SitemapLoader

Published Jun 6, 2024
·
Updated

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

3 affected componentsFixes available
pip/langchain>=0<0.2.5
0.2.5
pip/langchain-community<0.2.5
0.2.5
Langchain Langchain<0.2.5

Event History

Jun 6, 2024
CVE Published
via MITRE·06:52 PM
Data Sourced
via MITRE·06:52 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:30 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-2965?

CVE-2024-2965 is classified as a Denial-of-Service (DoS) vulnerability.

2

How do I fix CVE-2024-2965?

To remediate CVE-2024-2965, upgrade the 'langchain-community' package to version 0.2.5 or higher.

3

Which versions are affected by CVE-2024-2965?

CVE-2024-2965 affects all versions of the 'langchain-community' package prior to 0.2.5.

4

What component is impacted by CVE-2024-2965?

CVE-2024-2965 specifically impacts the 'SitemapLoader' class in the 'langchain-community' package.

5

Can CVE-2024-2965 lead to production downtime?

Yes, CVE-2024-2965 can lead to production downtime due to its Denial-of-Service nature.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203