# CVE-2021-4249: xml-conduit DOCTYPE Entity Expansion Parse.hs infinite loop

- Priority: **Routine**
- Reason: Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-12-18 · Modified: 2025-04-15
- Aliases: UBUNTU-CVE-2021-4249, DEBIAN-CVE-2021-4249, openSUSE-SU-2026:11086-1
- Record: https://cvemate.com/vulnerability/CVE-2021-4249 · JSON: https://cvemate.com/vulnerability/CVE-2021-4249/json

## Description

```text
A vulnerability was found in xml-conduit. It has been classified as problematic. Affected is an unknown function of the file xml-conduit/src/Text/XML/Stream/Parse.hs of the component DOCTYPE Entity Expansion Handler. The manipulation leads to infinite loop. It is possible to launch the attack remotely. Upgrading to version 1.9.1.0 is able to address this issue. The name of the patch is 4be1021791dcdee8b164d239433a2043dc0939ea. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-216204.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.86%, percentile 59.751%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian haskell-xml-conduit (Debian): \< 1.9.1.1-1
- ubuntu haskell-xml-conduit (Ubuntu): All versions (No fix recorded)
- haskell xml-conduit: \< 1.9.1.0
- opensuse ghc-xml-conduit&distro=openSUSE Tumbleweed (openSUSE): \< 1.10.1.0-2.1
- unspecified xml-conduit: 0.5.0 \| 0.5.0.1 \| 0.5.1 \| 0.5.1.1 \| 0.5.1.2 \| 0.5.2 \| 0.5.3 \| 0.5.3.1 \| 0.5.4 \| 0.6.0 \| 0.6.1 \| 0.7.0 \| 0.7.0.1 \| 0.7.0.2 \| 0.7.0.3 \| 1.0.0 \| 1.0.1 \| 1.0.1.1 \| 1.0.2 \| 1.0.2.1 \| 1.0.3 \| 1.0.3.1 \| 1.0.3.2 \| 1.0.3.3 \| 1.1.0 \| 1.1.0.1 \| 1.1.0.2 \| 1.1.0.3 \| 1.1.0.4 \| 1.1.0.5 \| 1.1.0.6 \| 1.1.0.7 \| 1.1.0.8 \| 1.1.0.9 \| 1.2.0 \| 1.2.0.1 \| 1.2.0.2 \| 1.2.0.3 \| 1.2.1 \| 1.2.1.1 \| 1.2.2 \| 1.2.3 \| 1.2.3.1 \| 1.2.3.2 \| 1.2.3.3 \| 1.2.4 \| 1.2.5 \| 1.2.5.1 \| 1.2.6 \| 1.3.0 \| 1.3.1 \| 1.3.2 \| 1.3.3 \| 1.3.3.1 \| 1.3.4 \| 1.3.4.1 \| 1.3.4.2 \| 1.3.5 \| 1.4.0 \| 1.4.0.1 \| 1.4.0.2 \| 1.4.0.3 \| 1.4.0.4 \| 1.5.0 \| 1.5.1 \| 1.6.0 \| 1.7.0 \| 1.7.0.1 \| 1.7.1.0 \| 1.7.1.1 \| 1.7.1.2 \| 1.8.0 \| 1.8.0.1 \| 1.9.0.0

## References

- <https://github.com/snoyberg/xml/pull/161>
- <https://hackage.haskell.org/package/xml-conduit-1.9.1.0>
- <https://github.com/snoyberg/xml/commit/4be1021791dcdee8b164d239433a2043dc0939ea>
- <https://vuldb.com/?id.216204>
- <https://ubuntu.com/security/CVE-2021-4249>
- <https://www.cve.org/CVERecord?id=CVE-2021-4249>
- <https://security-tracker.debian.org/tracker/CVE-2021-4249>
- <https://www.suse.com/security/cve/CVE-2021-4249>

---

Data as of 2026-12-05T10:10:47.951Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
