Vulnerability · Published Mar 26, 2024 · Assigned by @huntr_ai

CVE-2024-1455Billion Laughs Attack leading to DoS in langchain-ai/langchain

Medium 5.9

In plain English

A medium-severity security flaw in langchain-ai/langchain from langchain-ai. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)5.9Medium
Exploit odds (30 days)0.8%top 44.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIlangchain-core0.1.35GHSA-q84m-rmw3-4382
PyPIlangchain-core0.1.35PYSEC-2026-1519

Affected products (as reported)

VendorProductVersions
langchain-ai langchain-ai/langchain unspecified – before 0.1.35

Weakness: CWE-776 · Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References