8.2high
Atom-table exhaustion denial-of-service via JSON parse_document in MDEx
- Severity
- 8.2high CVSS:4.0 by EEF
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- EEF
- Also known as
- EEF-CVE-2026-53426GHSA-923r-7vf4-5vw8
Description
Allocation of Resources Without Limits or Throttling vulnerability in leandrocp MDEx allows Excessive Allocation. MDEx.parse_document/2 accepts a {:json, json} source. In lib/mdex.ex, the private json_to_node/1 function passes the attacker-controlled node_type value to Module.concat/1, which calls String.to_atom/1 and interns a brand-new atom for every distinct value. Atoms are never garbage collected on the BEAM, so a crafted JSON document carrying a unique node_type at each (deeply nested) node mints one permanent atom per node. A single document can intern hundreds of thousands of atoms, and a large enough document exhausts the default atom table (around 1,048,576 atoms) and aborts the entire Erlang VM, taking down every process on the node. Any application that passes untrusted input to the {:json, ...} source of MDEx.parse_document is exposed to an unauthenticated denial-of-service. This issue affects mdex: from 0.4.3 before 0.13.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mdex | from 0.4.3 before 0.13.2 | CVE List |
| leandrocp/mdex | from cbb59a3f792dbc343873adec3466f49c853dc309 before 00fddf444220a1f1cc0af0a1cab6738804878387 | CVE List |
| mdex (Hex) | from 0.4.3 before 0.13.2 | Erlang Ecosystem Foundation |
| https://github.com/leandrocp/mdex | from cbb59a3f792dbc343873adec3466f49c853dc309 before 00fddf444220a1f1cc0af0a1cab6738804878387 | Erlang Ecosystem Foundation |
All scores
| EEF | 8.2high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H |
| Erlang Ecosystem Foundation | Not scored CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Allocation of Resources Without Limits or Throttling vulnerability in leandrocp MDEx allows Excessive Allocation. MDEx.parse_document/2 accepts a {:json, json} source. In lib/mdex.ex, the private json_to_node/1 function passes the attacker-controlled node_type value to Module.concat/1, which calls String.to_atom/1 and interns a brand-new atom for every distinct value. Atoms are never garbage collected on the BEAM, so a crafted JSON document carrying a unique node_type at each (deeply nested) node mints one permanent atom per node. A single document can intern hundreds of thousands of atoms, and a large enough document exhausts the default atom table (around 1,048,576 atoms) and aborts the entire Erlang VM, taking down every process on the node. Any application that passes untrusted input to the {:json, ...} source of MDEx.parse_document is exposed to an unauthenticated denial-of-service. This issue affects mdex: from 0.4.3 before 0.13.2.
Erlang Ecosystem Foundation
Summary
Allocation of Resources Without Limits or Throttling vulnerability in leandrocp MDEx allows Excessive Allocation.
MDEx.parse_document/2 accepts a {:json, json} source. In lib/mdex.ex, the private json_to_node/1 function passes the attacker-controlled node_type value to Module.concat/1, which calls String.to_atom/1 and interns a brand-new atom for every distinct value. Atoms are never garbage collected on the BEAM, so a crafted JSON document carrying a unique node_type at each (deeply nested) node mints one permanent atom per node.
A single document can intern hundreds of thousands of atoms, and a large enough document exhausts the default atom table (around 1,048,576 atoms) and aborts the entire Erlang VM, taking down every process on the node. Any application that passes untrusted input to the {:json, ...} source of MDEx.parse_document is exposed to an unauthenticated denial-of-service.
This issue affects mdex: from 0.4.3 before 0.13.2.
Workarounds
Do not pass untrusted or attacker-controlled input to the {:json, ...} source of MDEx.parse_document/2. The {:markdown, ...} source is not affected.
NVD (es)
Vulnerabilidad de Asignación de Recursos Sin Límites ni Limitación en leandrocp MDEx permite Asignación Excesiva. MDEx.parse_document/2 acepta una fuente {:json, json}. En lib/mdex.ex, la función privada json_to_node/1 pasa el valor node_type controlado por el atacante a Module.concat/1, que llama a String.to_atom/1 e interna un átomo completamente nuevo por cada valor distinto. Los átomos nunca se recolectan como basura en BEAM, por lo que un documento JSON manipulado que lleva un node_type único en cada nodo (profundamente anidado) crea un átomo permanente por nodo. Un solo documento puede internar cientos de miles de átomos, y un documento lo suficientemente grande agota la tabla de átomos predeterminada (alrededor de 1.048.576 átomos) y aborta toda la VM de Erlang, derribando cada proceso en el nodo. Cualquier aplicación que pase entrada no confiable a la fuente {:json, ...} de MDEx.parse_document está expuesta a una denegación de servicio no autenticada. Este problema afecta a mdex desde 0.4.3 antes de 0.13.2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-53426 changed 2026-11-20 | CVE Terms of Use |
| Erlang Ecosystem Foundation | EEF-CVE-2026-53426 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2026-53426 changed 2026-11-20 | Public domain |