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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | langchain-core | 0.1.35 | GHSA-q84m-rmw3-4382 |
| PyPI | langchain-core | 0.1.35 | PYSEC-2026-1519 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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