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

- Severity: Medium 5.9 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-26T14:03:46.647Z
- Modified: 2026-07-07T17:56:44.869Z
- Also known as: GHSA-q84m-rmw3-4382, PYSEC-2026-1519
- Weaknesses: CWE-776
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

- langchain-ai langchain-ai/langchain: from unspecified before 0.1.35
- langchain-ai langchain-ai\/langchain: before 0.1.35
- langchain-core (PyPI): before 0.1.35
- langchain langchain: from 0.1.4 up to 0.1.35

## Every score

- @huntr_ai: CVSS:3.0 5.9 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 5.9 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.0 5.9 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://huntr.com/bounties/4353571f-c70d-4bfd-ac08-3a89cecb45b6> (exploit, third-party-advisory, web)
- <https://github.com/langchain-ai/langchain/commit/727d5023ce88e18e3074ef620a98137d26ff92a3> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-1455> (advisory)
- <https://github.com/langchain-ai/langchain/pull/17250> (web)
- <https://github.com/langchain-ai/langchain/pull/19653> (web)
- <https://github.com/langchain-ai/langchain/pull/19660> (web)
- <https://github.com/langchain-ai/langchain> (package)
- <https://pypi.org/project/langchain-core> (package)
- <https://github.com/advisories/GHSA-q84m-rmw3-4382> (advisory)

## Sources

- CVE List: [CVE-2024-1455](https://www.cve.org/CVERecord?id=CVE-2024-1455), CVE Terms of Use, modified 2024-08-15
- GitHub Advisory Database: [GHSA-q84m-rmw3-4382](https://github.com/advisories/GHSA-q84m-rmw3-4382), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-1455](https://nvd.nist.gov/vuln/detail/CVE-2024-1455), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1519](https://osv.dev/vulnerability/PYSEC-2026-1519), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-1455 · Whole record: https://cve.day/CVE-2024-1455.json · Rebuilt by cve.day 2026-11-25T22:58:37.902Z
