Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-53429: CWE-401 Missing Release of Memory after Effective Lifetime in leandrocp mdex

0
Medium
VulnerabilityCVE-2026-53429cvecve-2026-53429cwe-401
Published: 06/29/2026 (06/29/2026, 19:07:16 UTC)
Source: CVE Database V5
Vendor/Project: leandrocp
Product: mdex

Description

Missing Release of Memory after Effective Lifetime vulnerability in leandrocp mdex and mdex_native allows an attacker who controls a rendered document to cause a denial of service through unbounded native memory exhaustion. The native rendering code permanently leaks memory when rendering a document that contains escaped-tag nodes. The conversion of each %MDEx.EscapedTag{} node into its native representation (From<ExEscapedTag> for NodeValue in the Rust NIF) calls Box::leak on the caller-supplied literal string, which surrenders the backing allocation so that it lives for the entire lifetime of the operating system process and is never freed. Both the byte length of each literal and the number of escaped-tag nodes in a document are attacker-controlled, and there is no size cap, rate limit, or string interning on this path. Every render of a document containing escaped-tag nodes therefore leaks literal_size x node_count bytes that can never be reclaimed, and repeated renders accumulate without bound. Rendering reaches this path through the public MDEx.to_html/1 entry point and any other API that renders a supplied %MDEx.Document{}. Any application that uses mdex (or mdex_native directly) to render documents derived from user-supplied content is affected. Because the leaked memory is never reclaimed for the life of the BEAM process, an attacker can drive resident memory upward without limit until the node exhausts memory and crashes, taking down every process on it. The vulnerable native code originally shipped inside mdex (in native/comrak_nif/src/types/document.rs) and was later extracted into the separate mdex_native package (native/mdex_native_nif/src/types/document.rs), where it remains unpatched. This issue affects mdex from 0.11.0 before 0.12.3, and mdex_native from 0.1.0 before 0.2.3.

CVSS v4.0

Score 6.9medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

mdex
pkg:hex/mdex
Affected versions
>=0.11.0 <0.12.3
GitHub Actionsmore threats →cve
leandrocp/mdex
pkg:github/leandrocp/mdex
mdex_native
pkg:hex/mdex_native
Affected versions
>=0.1.0 <0.2.3
GitHub Actionsmore threats →cve
leandrocp/mdex_native
pkg:github/leandrocp/mdex_native
CPE configurations (2)
cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*
cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/29/2026, 19:51:42 UTC

Technical Analysis

This vulnerability is a missing release of memory after its effective lifetime in the native rendering code of leandrocp mdex and mdex_native. Specifically, when rendering documents with escaped-tag nodes, the conversion process leaks memory by calling Box::leak on caller-supplied literal strings, causing the backing allocation to persist for the entire OS process lifetime. Since both the size of each literal and the number of escaped-tag nodes are attacker-controlled without any size caps or rate limits, repeated rendering of such documents leads to unbounded native memory leaks. This can cause the BEAM process to exhaust system memory and crash, resulting in denial of service. The vulnerable code was originally part of mdex and later moved to mdex_native, with no patch available as of the publication date. The affected versions are mdex >=0.11.0 <0.12.3 and mdex_native >=0.1.0 <0.2.3.

Potential Impact

An attacker who can supply documents containing escaped-tag nodes to an application using mdex or mdex_native can cause a denial of service by exhausting native memory. The memory leak is permanent for the lifetime of the BEAM process, leading to unbounded memory growth and eventual process crash. This affects availability of the service running the vulnerable mdex/mdex_native versions.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. There is no documented official fix or patch available at this time. Until a patch is released, applications should avoid rendering untrusted or user-supplied documents containing escaped-tag nodes with vulnerable versions of mdex or mdex_native. Monitoring memory usage and limiting document complexity may help reduce risk but do not fully mitigate the leak.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-06-09T11:01:47.529Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a42c94c27e9c797196503d6

Added to database: 06/29/2026, 19:36:44 UTC

Last enriched: 06/29/2026, 19:51:42 UTC

Last updated: 06/29/2026, 20:59:26 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses