A vulnerability in the langchain-ai/langchain repository allows for a Billion Laughs Attack, a type of XML External Entity (XXE) exploitation.
Date: 2024-03
Affected: langchain/langchain
Attack vector: dos
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2024-1455
CWE: CWE-776
CVSS: 5.9 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H)

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


Mitigations:

Architectural layers (MAESTRO):