CVE-2024-1455

Billion Laughs Attack leading to DoS in langchain-ai/langchain

Published Mar 26, 2024 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0987 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).
Github GHSA Github GHSA GHSA-q84m-rmw3-4382 LangChain's XMLOutputParser vulnerable to XML Entity Expansion
History
Type Values Removed Values Added
First Time appeared Langchain
Langchain langchain
CPEs cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*
Vendors & Products Langchain
Langchain langchain
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntr_ai
Published
Updated
Aug 15, 2024, 3:56 PM
Reserved
Feb 12, 2024, 4:51 PM
Status
Analyzed
Published
Mar 26, 2024, 2:15 PM
Modified
Jun 17, 2026, 7:04 AM