cve.bz

CVE-2026-119443 XML Scan Untrusted DTD Which May Result in out of Memory Crash

6.9 mediumFix available

Medium (6.9) in erlang otp.

On this page
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.

Severity

CVSS 4.0

6.9 medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CWE
CWE-611 Improper Restriction of XML External Entity Reference
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
Assigned by
EEF (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • Erlang OTP: fixed in 2.1.3.4
  • Erlang OTP: fixed in 2.1.9.1
  • Erlang OTP: fixed in 2.2.1
  • Erlang OTP: fixed in 27.3.4.20
  • Erlang OTP: fixed in 28.5.0.9
  • Erlang OTP: fixed in 29.1.3

Ask an AI about this CVE

Show the promptExplain CVE-2026-119443 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-119443?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-119443?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-119443 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Erlang OTP1.3.7 and later
Erlang OTP17.0 and later

Fixed in

ProductFixed in
Erlang OTP2.1.3.4
Erlang OTP2.1.9.1
Erlang OTP2.2.1
Erlang OTP27.3.4.20
Erlang OTP28.5.0.9
Erlang OTP29.1.3

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate severity because exploitation is restricted to denial of service via memory exhaustion, with no impact on data confidentiality or system integrity. In Red Hat enterprise deployments, exploitation requires an Erlang application to ingest and parse untrusted XML documents using xmerl with default scanner configurations. While crashing the Erlang virtual machine causes service interruption, it does not enable arbitrary code execution or privilege escalation.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imageserlang27Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-119443.

Attack patterns (CAPEC)

  • CAPEC-221 Data Serialization External Entities Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON