logo

CVE-2024-2965 langchain-community

Package

Manager: pip
Name: langchain-community
Vulnerable Version: >=0 <0.2.5

Severity

Level: Medium

CVSS v3.1: CVSS:3.0/AV:P/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v4.0: CVSS:4.0/AV:P/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: 0.0005 pctl0.14984

Details

Denial of service in langchain-community Denial of service in `SitemapLoader` Document Loader in the `langchain-community` package, affecting versions below 0.2.5. 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.

Metadata

Created: 2024-06-06T21:30:36Z
Modified: 2024-11-04T15:27:57Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-3hjh-jh2h-vrg6/GHSA-3hjh-jh2h-vrg6.json
CWE IDs: ["CWE-400", "CWE-674"]
Alternative ID: GHSA-3hjh-jh2h-vrg6
Finding: F067
Auto approve: 1