CVE-2026-53426

Atom-table exhaustion denial-of-service via JSON parse_document in MDEx

Published Jun 29, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

MDEx.parse_document/2 uses a JSON source that internally maps the 'node_type' value to an Erlang atom without limits. Each unique value creates a persistent atom, and a crafted JSON document can spur hundreds of thousands of atoms, overwhelming the default atom table (~1,048,576). When the table capacity is exceeded, the BEAM VM terminates, bringing all processes under the node to a halt. The flaw is unauthenticated and allows any untrusted JSON payload to trigger a denial‑of‑service.

Affected Systems

The vulnerability applies to the MDEx library owned by leandrocp, affecting any version from 0.4.3 up to but not including 0.13.2. All software that passes third‑party JSON to MDEx.parse_document via the :json source is vulnerable.

Risk and Exploitability

The CVSS score of 8.2 reflects a high severity impact, while the EPSS score of < 1% indicates a very low probability of exploitation, but not zero. The vulnerability is not listed in CISA KEV. An attacker can exploit the flaw simply by delivering a crafted JSON payload to the MDEx parser; no authentication or privileged access is required, so the attack vector is unauthenticated remote input. Because atoms are not garbage collected, the denial‑of‑service is permanent for the life of the VM until a restart.

Remediation

Vendor Workaround

Do not pass untrusted or attacker-controlled input to the {:json, ...} source of MDEx.parse_document/2. The {:markdown, ...} source is not affected.


OpenCVE Recommended Actions

  • Update MDEx to version 0.13.2 or later to eliminate the atom‑creation flaw.
  • Reconfigure or hard‑code the use of the :{:markdown, ...} source for MDEx.parse_document; avoid sending untrusted JSON to the :{:json, ...} source.
  • If upgrading is delayed, validate or reject incoming JSON before it reaches MDEx, and restart the application when the atom table limits approach exhaustion.

Generated by OpenCVE AI on November 22, 2026 at 23:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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. 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.
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Atom-table exhaustion denial-of-service via JSON parse_document in MDEx
First Time appeared Leandrocp
Leandrocp mdex
Weaknesses CWE-770
CPEs cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
Vendors & Products Leandrocp
Leandrocp mdex
References
Metrics cvssV4_0

{'score': 8.2, 'vector': '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'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 20, 2026, 8:53 AM
Reserved
Jun 9, 2026, 11:01 AM
Status
Deferred
Published
Jun 29, 2026, 8:17 PM
Modified
Nov 20, 2026, 9:20 AM