Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted XML naming external DTD
-
Exploitxmerl_scan fetches file:///dev/zero via default fetch_fun
-
Impactfile:read_file reads unbounded, VM OOM-killed and parse hangs
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration XML external entity prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target application must parse attacker-controlled XML using xmerl_scan:string/1,2 or xmerl_scan:file/1,2 with DEFAULT options, and the XML must contain a <!DOCTYPE root SYSTEM "..."> external-DTD declaration whose system identifier the default fetch maps to a local path (file: URIs or absolute URIs), e.g. file:///dev/zero or another unbounded/large local file. The flaw triggers whether or not validation is enabled, and the OTP-27 default allow_entities=false does NOT prevent it because that option governs only <!ENTITY> declarations, not the DTD fetch itself. Limiting factors for defenders: exploitation requires the embedding application to actually feed untrusted XML to xmerl and to leave the default fetch behavior in place - supplying a custom fetch_fun that refuses external-DTD fetches blocks it, and upgrading to a fixed version (which defaults fetch_external_DTD to false) removes it. No authentication, privileges, or user interaction are required by the CVSS vector (PR:N/UI:N), and impact is confined to availability (VM OOM/crash); there is no confidentiality or integrity effect. |
| Impact | This is an availability-only denial-of-service (CWE-611 external-DTD abuse), not a confidentiality or integrity flaw: the provided CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:N) scores VC:N/VI:N/VA:H for a 6.9 Medium, and the vendor advisory confirms the impact is unbounded memory growth leading to an OOM-kill of the whole Erlang VM, with the parse never returning. No EPSS score, no CISA KEV listing, and no public exploit were supplied, so there is no signal of active exploitation; vuln.today assigns a 'this_month' priority rather than act_now/emergency. Two signals raise concern despite the Medium score: the flaw triggers under DEFAULT options (allow_entities=false and validation off do not prevent the external-DTD fetch), and the GHSA fully describes a trivial trigger (a document naming file:///dev/zero reaching 8-64 GB in ~5 seconds), so reproduction is easy even without published exploit code. One signal is conflicting and should be verified: the vendor rated the Attack Vector as Local (AV:L), yet the mechanism is 'parse an attacker-supplied XML document,' which in most real deployments (web services/APIs accepting XML) arrives over the network - the effective reachability depends entirely on how the embedding application receives untrusted XML, so AV:L likely reflects library-level conservatism rather than a true local-only constraint. Net: a genuine-but-bounded priority - patch on a normal cycle, prioritizing any service that parses untrusted XML with xmerl default options. |
| Exploit ScenarioDerived | An attacker submits a single crafted XML document to an application that parses it with xmerl_scan:string/1,2 or xmerl_scan:file/1,2 under default options; the document's <!DOCTYPE root SYSTEM "file:///dev/zero"> declaration causes xmerl to fetch and read the named local file without bound, driving the Erlang VM's memory to tens of GB until the OS OOM-kills the node and the parse never returns. No public weaponized exploit was supplied, but the GHSA advisory describes the trigger precisely enough that reproduction is trivial. The provided CVSS marks low attack complexity and no privileges, so a single malformed document is sufficient once it reaches the parser. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Unbounded memory consumption in Erlang OTP's xmerl XML parser allows an attacker who controls a parsed document to crash the whole Erlang VM: 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, and a system identifier such as file:///dev/zero is read without bound until the operating system OOM-kills the node and the parse never returns. OTP releases from 17.0 up to 27.3.4.20, 28.5.0.9 and 29.1.3 (xmerl 1.3.7 up to 2.1.3.4, 2.1.9.1 and 2.2.1) are affected; impact is availability only (C:N/I:N/A:H), and the assessed vector requires no authentication or user interaction. No CISA KEV listing and no public exploit code were identified in the supplied intelligence, although the vendor advisory documents the reporter's file:///dev/zero reproduction; priority is this_month.
RemediationAI
Upgrade to a fixed OTP release: 27.3.4.20, 28.5.0.9 or 29.1.3 (bundling xmerl 2.1.3.4, 2.1.9.1 or 2.2.1 respectively), which is the complete fix because the new fetch_external_DTD scanner option then defaults to false and the external DTD is no longer fetched unless a caller explicitly opts in. The corresponding upstream changes are commits 4d5dc15b3ba923ad9d939c560749239289ba41f3 and 6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d, with details in GHSA-j6vp-frc3-9g33 and the Erlang Ecosystem Foundation advisory. If upgrading immediately is not possible, the vendor-documented workaround is to pass a custom fetch_fun option to xmerl_scan that refuses external-DTD fetches; the trade-off is that documents legitimately referencing an external DTD or system identifier will no longer resolve or validate, so parsing may fail or fall back to internal-subset defaults for callers that depend on DTD-supplied declarations. Note that explicitly setting fetch_external_DTD to true on a patched release reintroduces the vulnerable behaviour, and that allow_entities or disabling validation are not effective mitigations, since neither controls the DTD fetch.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
xmerl is the XML parser shipped with Erlang/OTP, and the root cause is CWE-611: the parser treats the external DTD system identifier as trusted input rather than as attacker-controlled data. In lib/xmerl/src/xmerl_scan.erl, fetch_DTD/2 forwards every system identifier to the default fetch function, which resolves file: URIs and absolute URIs to local filesystem paths, and int_file_decl/3 then reads the entire target with file:read_file/1, pulling the whole content into VM memory in one operation with no size bound. The fetch occurs whether or not validation is enabled, and the allow_entities option - false by default since OTP 27 as part of the OTP-19079 hardening intended to make untrusted parsing safe - governs only <!ENTITY> declarations and does not suppress the DTD fetch, so that earlier mitigation does not cover this path. Because the read is an unbounded full-file slurp, a pseudo-file such as /dev/zero produces continuous allocation; the advisory reports binary memory reaching 8, 16, 32 and 64 GB within roughly five seconds on OTP 29.1.2 before the node is killed. The upstream fix introduces a fetch_external_DTD scanner option in the #xmerl_scanner{} record that defaults to false, changing the parser's default from 'fetch any system identifier' to 'fetch only when explicitly enabled'. The precise trigger conditions beyond the SYSTEM identifier being mapped to an unbounded or very large local file are not described in the available sources.
Know when Erlang Otp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Realistic exploitation feeds an untrusted XML document to a parsing service over the network (AV:N, diverging from the vendor's library-conservative AV:L), needs no privileges or interaction, and causes availability-only VM exhaustion (A:H, C:N/I:N).
Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).
CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.
More in Erlang Otp
View allErlang/OTP SSH server allows unauthenticated remote code execution by exploiting a flaw in SSH protocol message handling
The Erlang otp TLS server answers with different TLS alerts to different error types in the RSA PKCS #1 1.5 padding. Rat
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
Multiple CRLF injection vulnerabilities in the FTP module in Erlang/OTP R15B03 allow context-dependent attackers to inje
A local privilege escalation vulnerability was discovered in Erlang/OTP prior to version 23.2.3. Rated high severity (CV
An issue was discovered in Erlang/OTP 18.x. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitab
In Erlang/OTP before 23.3.4.15, 24.x before 24.3.4.2, and 25.x before 25.0.2, there is a Client Authentication Bypass in
Denial of service in Erlang/OTP's TLS handshake allows remote unauthenticated attackers to crash the BEAM VM by sending
Erlang/OTP nodes that decode External Term Format (ETF) from untrusted sources can be aborted outright by a single malfo
TLS server impersonation in Erlang/OTP's public_key library lets a name-constrained subordinate CA forge a trusted ident
Erlang/OTP 22.3.x before 22.3.4.6 and 23.x before 23.1 allows Directory Traversal. Rated high severity (CVSS 7.5), this
Certificate chain forgery in Erlang/OTP's public_key application (pubkey_cert module) lets a non-CA end-entity certifica
EUVD-2026-134144
NVD
CVE.org
EPSS
GitHub
Exploit-DB