CVE-2024-1455

Medium

Description

A vulnerability in the langchain-ai/langchain repository allows for a Billion Laughs Attack, a type of XML External Entity (XXE) exploitation. By nesting multiple layers of entities within an XML document, an attacker can cause the XML parser to consume excessive CPU and memory resources, leading to a denial of service (DoS).

SeverityMedium
CVSS5.9
Exploit probability—
ProductLangchain
PublishedMar 26, 2024
First seenMar 26, 2024
Weakness typeCWE-776CWE-776

How to fix

Update
  • langchain-core0.1.35 or later

Affected products

ProductAffected versionsFixed in
langchain langchain0.1.4 ≤ v ≤ 0.1.35—
langchain-corePyPIv < 0.1.350.1.35

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.