CVE-2026-119443XML Scan Untrusted DTD Which May Result in out of Memory Crash
Improper Restriction of XML External Entity Reference vulnerability in xmerl_scan in Erlang OTP xmerl allows an attacker to exhaust the memory of the Erlang VM via an XML document that names an external DTD. With default options, xmerl_scan:string/1,2 and xmerl_scan:file/1,2 fetch and parse the external DTD named in a <!DOCTYPE root SYSTEM "..."> declaration. fetch_DTD/2 in lib/xmerl/src/xmerl_scan.erl passes every system identifier to the default fetch function, which maps file: and absolute URIs to local paths, and int_file_decl/3 then reads the whole file with file:read_file/1. This happens whether or not validation is enabled, and the allow_entities option, which is false by default since OTP 27, only governs <!ENTITY> declarations and does not stop the fetch. A document naming file:///dev/zero makes the node read without bound until the operating system kills it for lack of memory, and the parse never returns. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to xmerl from 1.3.7 before 2.1.3.4, 2.1.9.1, and 2.2.1. Whether OTP before OTP 17.0, corresponding to xmerl before 1.3.7, is affected is unknown.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | erlang | Under investigation | ||
| Ubuntu 24.04 | erlang | Under investigation | ||
| Ubuntu 22.04 | erlang | Under investigation | ||
| Debian 14 | erlang | Fix pending | DEBIAN-CVE-2026-119443 | |
| Debian 13 | erlang | Fix pending | DEBIAN-CVE-2026-119443 | |
| Debian 12 | erlang | Fix pending | DEBIAN-CVE-2026-119443 |
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Erlang OTP: affected: 1.3.7 and later; fixed in
2.1.3.4,2.1.9.1,2.2.1 - Erlang OTP: affected: 17.0 and later; fixed in
27.3.4.20,28.5.0.9,29.1.3 - Erlang OTP: affected: 84adefa331c4159d432d22840663c38f155cd4c1 and later; fixed in
4d5dc15b3ba923ad9d939c560749239289ba41f3,6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d
Workaround: Pass a fetch_fun that refuses external resources in the option list of xmerl_scan:string/2 or xmerl_scan:file/2, for example {fetch_fun, fun(_ExtSpec, State) -> {ok, not_fetched, State} end}. The scanner then continues without reading or parsing the external DTD.
Vendor advisories:
- https://github.com/erlang/otp/security/advisories/GHSA-j6vp-frc3-9g33 (vendor-advisory)
- https://github.com/erlang/otp/commit/4d5dc15b3ba923ad9d939c560749239289ba41f3 (patch)
- https://github.com/erlang/otp/commit/6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d (patch)
References
- https://github.com/erlang/otp/security/advisories/GHSA-j6vp-frc3-9g33
- https://cna.erlef.org/cves/CVE-2026-119443.html
- https://osv.dev/vulnerability/EEF-CVE-2026-119443
- https://www.erlang.org/doc/system/versions.html#order-of-versions
- https://github.com/erlang/otp/commit/4d5dc15b3ba923ad9d939c560749239289ba41f3
- https://github.com/erlang/otp/commit/6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.