Atom-table exhaustion denial-of-service via JSON parse_document in MDEx
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| leandrocp | mdex | unaffected |
|
||||||
| leandrocp | mdex | unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Leandrocp | Mdex |
|
||||||||||||
| Leandrocp | Mdex |
|
||||||||||||
| Leandrocp | Mdex |
|
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.
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.180% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| 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
|