XXE in Langchain
CVE-2024-1455
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).
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.008, 56.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Langchain
- Langchain-Ai Langchain-Ai/langchain — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- huntr.com/bounties/4353571f-c70d-4bfd-ac08-3a89cecb45b6 (Exploit, Third Party Advisory)
- github.com/langchain-ai/langchain/commit/727d5023ce88e18e3074ef620a98137d26ff92… (Patch)