Uncontrolled Resource Consumption ('Resource Exhaustion') Affecting langchain-community package, versions [,0.2.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.04% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-LANGCHAINCOMMUNITY-7217836
  • published 7 Jun 2024
  • disclosed 6 Jun 2024
  • credit dxan29a

How to fix?

Upgrade langchain-community to version 0.2.5 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') through the SitemapLoader class. An attacker can occupy server socket/port resources and crash the Python process by inducing an infinite loop via recursive sitemap URL references.

CVSS Scores

version 3.1
Expand this section

Snyk

4.2 medium
  • Attack Vector (AV)
    Physical
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    High