Skip to main content

Erlang OTP xmerl CVE-2026-119443

| EUVDEUVD-2026-134144 MEDIUM
Improper Restriction of XML External Entity Reference (CWE-611)
2026-11-24 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
6.9
CVSS 4.0 · Vendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted XML naming external DTD
  2. Exploit
    xmerl_scan fetches file:///dev/zero via default fetch_fun
  3. Impact
    file: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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

otp 17.0 <*
otp 1.3.7 <*
otp 84adefa331c4159d432d22840663c38f155cd4c1 <*

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

Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db) PRIMARY 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
vuln.today AI 7.5 HIGH

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

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 6.2 MEDIUM

Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).

CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 90% exploitable
Prevalence
High
xmerl is the standard XML library bundled in the widely-deployed Erlang/OTP runtime
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.

CVE-2025-32433 CRITICAL POC
10.0 Apr 16

Erlang/OTP SSH server allows unauthenticated remote code execution by exploiting a flaw in SSH protocol message handling

CVE-2017-1000385 MEDIUM POC
5.9 Dec 12

The Erlang otp TLS server answers with different TLS alerts to different error types in the RSA PKCS #1 1.5 padding. Rat

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2014-1693 HIGH POC
7.5 Dec 08

Multiple CRLF injection vulnerabilities in the FTP module in Erlang/OTP R15B03 allow context-dependent attackers to inje

CVE-2021-29221 HIGH POC
7.0 Apr 09

A local privilege escalation vulnerability was discovered in Erlang/OTP prior to version 23.2.3. Rated high severity (CV

CVE-2016-10253 CRITICAL
9.8 Mar 18

An issue was discovered in Erlang/OTP 18.x. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitab

CVE-2022-37026 CRITICAL
9.8 Sep 21

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

CVE-2026-59251 HIGH
8.7 Jul 27

Denial of service in Erlang/OTP's TLS handshake allows remote unauthenticated attackers to crash the BEAM VM by sending

CVE-2026-54890 HIGH
8.2 Jul 27

Erlang/OTP nodes that decode External Term Format (ETF) from untrusted sources can be aborted outright by a single malfo

CVE-2026-42790 HIGH
7.6 May 27

TLS server impersonation in Erlang/OTP's public_key library lets a name-constrained subordinate CA forge a trusted ident

CVE-2020-25623 HIGH
7.5 Oct 02

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

CVE-2026-42789 HIGH
7.0 May 27

Certificate chain forgery in Erlang/OTP's public_key application (pubkey_cert module) lets a non-CA end-entity certifica

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy