CVE-2026-119443 (GCVE-0-2026-119443)
Vulnerability from cvelistv5 – Published: 2026-11-24 15:02 – Updated: 2026-11-24 15:02
VLAI
EPSS
VEX
Title
XML Scan Untrusted DTD Which May Result in out of Memory Crash
Summary
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
CWE
- CWE-611 - Improper Restriction of XML External Entity Reference
Assigner
References
6 references
| URL | Tags |
|---|---|
| https://github.com/erlang/otp/security/advisories… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-119443.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-119443 | related |
| https://www.erlang.org/doc/system/versions.html#o… | x_version-scheme |
| https://github.com/erlang/otp/commit/4d5dc15b3ba9… | patch |
| https://github.com/erlang/otp/commit/6723ad37c5ea… | patch |
Impacted products
3 products
| Vendor | Product | Version | |
|---|---|---|---|
| Erlang | OTP |
Affected:
1.3.7 , < *
(otp)
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
|
| Erlang | OTP |
Affected:
17.0 , < *
(otp)
cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
|
| Erlang | OTP |
Affected:
84adefa331c4159d432d22840663c38f155cd4c1 , < *
(git)
Unaffected: 4d5dc15b3ba923ad9d939c560749239289ba41f3 , < * (git) Unaffected: 6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d , < * (git) cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:* |
Date Public
2026-11-24 15:02
{
"containers": {
"cna": {
"affected": [
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"modules": [
"xmerl_scan"
],
"packageName": "xmerl",
"packageURL": "pkg:otp/xmerl?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
"product": "OTP",
"programFiles": [
"src/xmerl_scan.erl"
],
"programRoutines": [
{
"name": "xmerl_scan:string/1"
},
{
"name": "xmerl_scan:string/2"
},
{
"name": "xmerl_scan:file/1"
},
{
"name": "xmerl_scan:file/2"
},
{
"name": "xmerl_scan:fetch_DTD/2"
},
{
"name": "xmerl_scan:fetch_and_parse/3"
},
{
"name": "xmerl_scan:fetch_URI/2"
},
{
"name": "xmerl_scan:int_file_decl/3"
}
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "2.1.3.4",
"status": "unaffected"
},
{
"at": "2.1.9.1",
"status": "unaffected"
},
{
"at": "2.2.1",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "1.3.7",
"versionType": "otp"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"modules": [
"xmerl_scan"
],
"packageName": "otp",
"packageURL": "pkg:software-id/erlang.org/otp",
"product": "OTP",
"programFiles": [
"lib/xmerl/src/xmerl_scan.erl"
],
"programRoutines": [
{
"name": "xmerl_scan:string/1"
},
{
"name": "xmerl_scan:string/2"
},
{
"name": "xmerl_scan:file/1"
},
{
"name": "xmerl_scan:file/2"
},
{
"name": "xmerl_scan:fetch_DTD/2"
},
{
"name": "xmerl_scan:fetch_and_parse/3"
},
{
"name": "xmerl_scan:fetch_URI/2"
},
{
"name": "xmerl_scan:int_file_decl/3"
}
],
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "27.3.4.20",
"status": "unaffected"
},
{
"at": "28.5.0.9",
"status": "unaffected"
},
{
"at": "29.1.3",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "17.0",
"versionType": "otp"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"modules": [
"xmerl_scan"
],
"packageName": "erlang/otp",
"packageURL": "pkg:github/erlang/otp",
"product": "OTP",
"programFiles": [
"lib/xmerl/src/xmerl_scan.erl"
],
"programRoutines": [
{
"name": "xmerl_scan:string/1"
},
{
"name": "xmerl_scan:string/2"
},
{
"name": "xmerl_scan:file/1"
},
{
"name": "xmerl_scan:file/2"
},
{
"name": "xmerl_scan:fetch_DTD/2"
},
{
"name": "xmerl_scan:fetch_and_parse/3"
},
{
"name": "xmerl_scan:fetch_URI/2"
},
{
"name": "xmerl_scan:int_file_decl/3"
}
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "4d5dc15b3ba923ad9d939c560749239289ba41f3",
"status": "unaffected"
},
{
"at": "6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "84adefa331c4159d432d22840663c38f155cd4c1",
"versionType": "git"
},
{
"lessThan": "*",
"status": "unaffected",
"version": "4d5dc15b3ba923ad9d939c560749239289ba41f3",
"versionType": "git"
},
{
"lessThan": "*",
"status": "unaffected",
"version": "6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"versionEndExcluding": "27.3.4.20",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"versionEndExcluding": "28.5.0.9",
"versionStartIncluding": "28.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*",
"versionEndExcluding": "29.1.3",
"versionStartIncluding": "29.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Neil Berkman / Xuku LLC"
},
{
"lang": "en",
"type": "reporter",
"value": "Neil Berkman / Xuku LLC"
},
{
"lang": "en",
"type": "coordinator",
"value": "Ingela Andin"
},
{
"lang": "en",
"type": "coordinator",
"value": "Jonatan M\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Lars Thors\u00e9n"
}
],
"dateAssigned": "2026-11-05T14:26:31.000Z",
"datePublic": "2026-11-24T15:02:08.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Restriction of XML External Entity Reference vulnerability in \u003ccode\u003exmerl_scan\u003c/code\u003e in Erlang OTP xmerl allows an attacker to exhaust the memory of the Erlang VM via an XML document that names an external DTD.\u003c/p\u003e\n\u003cp\u003eWith default options, \u003ccode\u003exmerl_scan:string/1,2\u003c/code\u003e and \u003ccode\u003exmerl_scan:file/1,2\u003c/code\u003e fetch and parse the external DTD named in a \u003ccode\u003e\u0026lt;!DOCTYPE root SYSTEM \"...\"\u0026gt;\u003c/code\u003e declaration. \u003ccode\u003efetch_DTD/2\u003c/code\u003e in \u003ccode\u003elib/xmerl/src/xmerl_scan.erl\u003c/code\u003e passes every system identifier to the default fetch function, which maps \u003ccode\u003efile:\u003c/code\u003e and absolute URIs to local paths, and \u003ccode\u003eint_file_decl/3\u003c/code\u003e then reads the whole file with \u003ccode\u003efile:read_file/1\u003c/code\u003e. This happens whether or not validation is enabled, and the \u003ccode\u003eallow_entities\u003c/code\u003e option, which is \u003ccode\u003efalse\u003c/code\u003e by default since OTP 27, only governs \u003ccode\u003e\u0026lt;!ENTITY\u0026gt;\u003c/code\u003e declarations and does not stop the fetch. A document naming \u003ccode\u003efile:///dev/zero\u003c/code\u003e makes the node read without bound until the operating system kills it for lack of memory, and the parse never returns.\u003c/p\u003e\n\u003cp\u003eThis issue affects OTP from OTP\u0026nbsp;17.0 before OTP\u0026nbsp;27.3.4.20, OTP\u0026nbsp;28.5.0.9, and OTP\u0026nbsp;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\u0026nbsp;17.0, corresponding to xmerl before 1.3.7, is affected is unknown.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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.\n\nWith default options, `xmerl_scan:string/1,2` and `xmerl_scan:file/1,2` fetch and parse the external DTD named in a `\u003c!DOCTYPE root SYSTEM \"...\"\u003e` 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 `\u003c!ENTITY\u003e` 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.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.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\u00a017.0, corresponding to xmerl before 1.3.7, is affected is unknown."
}
],
"value": "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.\n\nWith default options, xmerl_scan:string/1,2 and xmerl_scan:file/1,2 fetch and parse the external DTD named in a \u003c!DOCTYPE root SYSTEM \"...\"\u003e 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 \u003c!ENTITY\u003e 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.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.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\u00a017.0, corresponding to xmerl before 1.3.7, is affected is unknown."
}
],
"impacts": [
{
"capecId": "CAPEC-201",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who can supply an XML document to an application that parses it with \u003ccode\u003exmerl_scan\u003c/code\u003e using default options makes the node read an unbounded local resource such as \u003ccode\u003e/dev/zero\u003c/code\u003e. The read exhausts memory and takes the node down for every user of the application.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who can supply an XML document to an application that parses it with `xmerl_scan` using default options makes the node read an unbounded local resource such as `/dev/zero`. The read exhausts memory and takes the node down for every user of the application."
}
],
"value": "An attacker who can supply an XML document to an application that parses it with xmerl_scan using default options makes the node read an unbounded local resource such as /dev/zero. The read exhausts memory and takes the node down for every user of the application."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-611",
"description": "CWE-611 Improper Restriction of XML External Entity Reference",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T15:02:12.313Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "XML Scan Untrusted DTD Which May Result in out of Memory Crash",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/erlang/otp/security/advisories/GHSA-j6vp-frc3-9g33"
},
{
"name": "EEF CNA record for CVE-2026-119443",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-119443.html"
},
{
"name": "OSV record EEF-CVE-2026-119443",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-119443"
},
{
"name": "Erlang/OTP version ordering",
"tags": [
"x_version-scheme"
],
"url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
},
{
"name": "Fix commit 4d5dc15 in erlang/otp",
"tags": [
"patch"
],
"url": "https://github.com/erlang/otp/commit/4d5dc15b3ba923ad9d939c560749239289ba41f3"
},
{
"name": "Fix commit 6723ad3 in erlang/otp",
"tags": [
"patch"
],
"url": "https://github.com/erlang/otp/commit/6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "XML Scan Untrusted DTD Which May Result in out of Memory Crash",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003ePass a \u003ccode\u003efetch_fun\u003c/code\u003e that refuses external resources in the option list of \u003ccode\u003exmerl_scan:string/2\u003c/code\u003e or \u003ccode\u003exmerl_scan:file/2\u003c/code\u003e, for example \u003ccode\u003e{fetch_fun, fun(_ExtSpec, State) -\u0026gt; {ok, not_fetched, State} end}\u003c/code\u003e. The scanner then continues without reading or parsing the external DTD.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "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) -\u003e {ok, not_fetched, State} end}`. The scanner then continues without reading or parsing the external DTD."
}
],
"value": "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) -\u003e {ok, not_fetched, State} end}. The scanner then continues without reading or parsing the external DTD."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eBuild an XML document whose DOCTYPE names an unbounded local resource, for example \u003ccode\u003e\u0026lt;?xml version=\"1.0\"?\u0026gt;\u0026lt;!DOCTYPE root SYSTEM \"file:///dev/zero\"\u0026gt;\u0026lt;root/\u0026gt;\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eParse it with \u003ccode\u003exmerl_scan:string/1\u003c/code\u003e with default options on a Unix host.\u003c/li\u003e\n\u003cli\u003eThe call never returns. The reporter observed binary memory reaching 8, 16, 32 and 64 GB within five seconds on OTP 29.1.2, after which the node was killed for lack of memory.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Build an XML document whose DOCTYPE names an unbounded local resource, for example `\u003c?xml version=\"1.0\"?\u003e\u003c!DOCTYPE root SYSTEM \"file:///dev/zero\"\u003e\u003croot/\u003e`.\n2. Parse it with `xmerl_scan:string/1` with default options on a Unix host.\n3. The call never returns. The reporter observed binary memory reaching 8, 16, 32 and 64 GB within five seconds on OTP 29.1.2, after which the node was killed for lack of memory."
}
],
"value": "* Build an XML document whose DOCTYPE names an unbounded local resource, for example \u003c?xml version=\"1.0\"?\u003e\u003c!DOCTYPE root SYSTEM \"file:///dev/zero\"\u003e\u003croot/\u003e.\n* Parse it with xmerl_scan:string/1 with default options on a Unix host.\n* The call never returns. The reporter observed binary memory reaching 8, 16, 32 and 64 GB within five seconds on OTP 29.1.2, after which the node was killed for lack of memory."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. DOCTYPE handling.\u003c/strong\u003e \u003ccode\u003escan_doctype2/3\u003c/code\u003e and \u003ccode\u003escan_doctype3/3\u003c/code\u003e in \u003ccode\u003elib/xmerl/src/xmerl_scan.erl\u003c/code\u003e call \u003ccode\u003efetch_DTD/2\u003c/code\u003e once the \u003ccode\u003e\u0026lt;!DOCTYPE\u0026gt;\u003c/code\u003e declaration ends. \u003ccode\u003efetch_DTD/2\u003c/code\u003e has no clause that skips the fetch when validation is off (that clause is commented out), so every system identifier reaches \u003ccode\u003efetch_and_parse/3\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Default fetch.\u003c/strong\u003e \u003ccode\u003efetch_and_parse/3\u003c/code\u003e calls the scanner\u0027s \u003ccode\u003efetch_fun\u003c/code\u003e, which defaults to \u003ccode\u003efetch/2\u003c/code\u003e. Its helper \u003ccode\u003efetch_URI/2\u003c/code\u003e treats the identifier as a filename: a \u003ccode\u003efile:\u003c/code\u003e URI or an absolute path resolves to that local path, and a relative name resolves against \u003ccode\u003exmlbase\u003c/code\u003e. Only \u003ccode\u003ehttp:\u003c/code\u003e identifiers are left unread.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Unbounded read.\u003c/strong\u003e The returned \u003ccode\u003e{file, Path}\u003c/code\u003e goes to \u003ccode\u003eint_file_decl/3\u003c/code\u003e, which calls \u003ccode\u003efile:read_file/1\u003c/code\u003e on the path and converts the result to a list. \u003ccode\u003efile:read_file/1\u003c/code\u003e reads until end of file, so a device such as \u003ccode\u003e/dev/zero\u003c/code\u003e never returns and the binary heap grows until the operating system kills the VM. The \u003ccode\u003eallow_entities\u003c/code\u003e default of \u003ccode\u003efalse\u003c/code\u003e does not help: it only rejects \u003ccode\u003e\u0026lt;!ENTITY\u0026gt;\u003c/code\u003e declarations in \u003ccode\u003escan_markup_decl/2\u003c/code\u003e, which runs after the file has been read.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. DOCTYPE handling.** `scan_doctype2/3` and `scan_doctype3/3` in `lib/xmerl/src/xmerl_scan.erl` call `fetch_DTD/2` once the `\u003c!DOCTYPE\u003e` declaration ends. `fetch_DTD/2` has no clause that skips the fetch when validation is off (that clause is commented out), so every system identifier reaches `fetch_and_parse/3`.\n\n**2. Default fetch.** `fetch_and_parse/3` calls the scanner\u0027s `fetch_fun`, which defaults to `fetch/2`. Its helper `fetch_URI/2` treats the identifier as a filename: a `file:` URI or an absolute path resolves to that local path, and a relative name resolves against `xmlbase`. Only `http:` identifiers are left unread.\n\n**3. Unbounded read.** The returned `{file, Path}` goes to `int_file_decl/3`, which calls `file:read_file/1` on the path and converts the result to a list. `file:read_file/1` reads until end of file, so a device such as `/dev/zero` never returns and the binary heap grows until the operating system kills the VM. The `allow_entities` default of `false` does not help: it only rejects `\u003c!ENTITY\u003e` declarations in `scan_markup_decl/2`, which runs after the file has been read."
}
],
"value": "1. DOCTYPE handling. scan_doctype2/3 and scan_doctype3/3 in lib/xmerl/src/xmerl_scan.erl call fetch_DTD/2 once the \u003c!DOCTYPE\u003e declaration ends. fetch_DTD/2 has no clause that skips the fetch when validation is off (that clause is commented out), so every system identifier reaches fetch_and_parse/3.\n\n2. Default fetch. fetch_and_parse/3 calls the scanner\u0027s fetch_fun, which defaults to fetch/2. Its helper fetch_URI/2 treats the identifier as a filename: a file: URI or an absolute path resolves to that local path, and a relative name resolves against xmlbase. Only http: identifiers are left unread.\n\n3. Unbounded read. The returned {file, Path} goes to int_file_decl/3, which calls file:read_file/1 on the path and converts the result to a list. file:read_file/1 reads until end of file, so a device such as /dev/zero never returns and the binary heap grows until the operating system kills the VM. The allow_entities default of false does not help: it only rejects \u003c!ENTITY\u003e declarations in scan_markup_decl/2, which runs after the file has been read."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-119443",
"datePublished": "2026-11-24T15:02:12.313Z",
"dateReserved": "2026-10-30T09:45:01.835Z",
"dateUpdated": "2026-11-24T15:02:12.313Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-119443",
"date": "2026-11-25",
"epss": "0.00254",
"percentile": "0.10315"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"modules": [
"xmerl_scan"
],
"packageName": "xmerl",
"packageURL": "pkg:otp/xmerl?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
"product": "OTP",
"programFiles": [
"src/xmerl_scan.erl"
],
"programRoutines": [
{
"name": "xmerl_scan:string/1"
},
{
"name": "xmerl_scan:string/2"
},
{
"name": "xmerl_scan:file/1"
},
{
"name": "xmerl_scan:file/2"
},
{
"name": "xmerl_scan:fetch_DTD/2"
},
{
"name": "xmerl_scan:fetch_and_parse/3"
},
{
"name": "xmerl_scan:fetch_URI/2"
},
{
"name": "xmerl_scan:int_file_decl/3"
}
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "2.1.3.4",
"status": "unaffected"
},
{
"at": "2.1.9.1",
"status": "unaffected"
},
{
"at": "2.2.1",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "1.3.7",
"versionType": "otp"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"modules": [
"xmerl_scan"
],
"packageName": "otp",
"packageURL": "pkg:software-id/erlang.org/otp",
"product": "OTP",
"programFiles": [
"lib/xmerl/src/xmerl_scan.erl"
],
"programRoutines": [
{
"name": "xmerl_scan:string/1"
},
{
"name": "xmerl_scan:string/2"
},
{
"name": "xmerl_scan:file/1"
},
{
"name": "xmerl_scan:file/2"
},
{
"name": "xmerl_scan:fetch_DTD/2"
},
{
"name": "xmerl_scan:fetch_and_parse/3"
},
{
"name": "xmerl_scan:fetch_URI/2"
},
{
"name": "xmerl_scan:int_file_decl/3"
}
],
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "27.3.4.20",
"status": "unaffected"
},
{
"at": "28.5.0.9",
"status": "unaffected"
},
{
"at": "29.1.3",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "17.0",
"versionType": "otp"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"modules": [
"xmerl_scan"
],
"packageName": "erlang/otp",
"packageURL": "pkg:github/erlang/otp",
"product": "OTP",
"programFiles": [
"lib/xmerl/src/xmerl_scan.erl"
],
"programRoutines": [
{
"name": "xmerl_scan:string/1"
},
{
"name": "xmerl_scan:string/2"
},
{
"name": "xmerl_scan:file/1"
},
{
"name": "xmerl_scan:file/2"
},
{
"name": "xmerl_scan:fetch_DTD/2"
},
{
"name": "xmerl_scan:fetch_and_parse/3"
},
{
"name": "xmerl_scan:fetch_URI/2"
},
{
"name": "xmerl_scan:int_file_decl/3"
}
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"versions": [
{
"changes": [
{
"at": "4d5dc15b3ba923ad9d939c560749239289ba41f3",
"status": "unaffected"
},
{
"at": "6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "84adefa331c4159d432d22840663c38f155cd4c1",
"versionType": "git"
},
{
"lessThan": "*",
"status": "unaffected",
"version": "4d5dc15b3ba923ad9d939c560749239289ba41f3",
"versionType": "git"
},
{
"lessThan": "*",
"status": "unaffected",
"version": "6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d",
"versionType": "git"
}
]
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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.\n\nWith default options, xmerl_scan:string/1,2 and xmerl_scan:file/1,2 fetch and parse the external DTD named in a \u003c!DOCTYPE root SYSTEM \"...\"\u003e 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 \u003c!ENTITY\u003e 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.\n\nThis issue affects OTP from OTP\u00a017.0 before OTP\u00a027.3.4.20, OTP\u00a028.5.0.9, and OTP\u00a029.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\u00a017.0, corresponding to xmerl before 1.3.7, is affected is unknown."
}
],
"id": "CVE-2026-119443",
"lastModified": "2026-11-24T19:12:16.707",
"metrics": {
"cvssMetricV40": [
{
"cvssData": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"availabilityRequirement": "NOT_DEFINED",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"confidentialityRequirement": "NOT_DEFINED",
"exploitMaturity": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
]
},
"published": "2026-11-24T15:17:14.180",
"references": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://cna.erlef.org/cves/CVE-2026-119443.html"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/erlang/otp/commit/4d5dc15b3ba923ad9d939c560749239289ba41f3"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/erlang/otp/commit/6723ad37c5ea8febb59b05e95f8d1343f2c2fb7d"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/erlang/otp/security/advisories/GHSA-j6vp-frc3-9g33"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-119443"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
}
],
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"vulnStatus": "Awaiting Analysis",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-611"
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
]
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-25T21:35:11+00:00",
"cve": "CVE-2026-119443",
"id": "CVE-2026-119443",
"initial_release_date": "2026-11-24T15:02:12.313000+00:00",
"product_status:fixed": "118",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "erlang: erlang: Denial of Service via external DTD processing in xmerl",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-119443.json",
"version": "3"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…