CVE-2026-53429

Unbounded native memory leak in mdex escaped-tag rendering enables unauthenticated denial of service

6.9 medium EPSS 0.19%

Published 29 Jun 2026 Updated 20 Nov 2026 CNA: EEF

Check your servers for CVE-2026-53429

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-53429 affects mdex, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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 × 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).

This issue affects mdex: from 0.11.1 before 0.12.3; mdex_native: from 0.1.0 before 0.2.3.

Severity (CVSS)

6.9 medium CVSS 4.0 from EEF (CNA)
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
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Attack requirements
none: an attack works without special conditions on the target
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Impact on the vulnerable system
confidentiality none, integrity none, availability high: what an attacker can read, change or stop in the vulnerable component
Impact on other systems
confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it

Exploitation

EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.17% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 29 Jun 2026):

Exploitation
poc: a proof of concept is public
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected products

As the CNA lists them.

ProductVersions
mdex
package mdex
affected from 0.11.1, before 0.12.3
Other versions: unaffected
mdex
package leandrocp/mdex
affected from 81e4d14dd3aa5b206e395c7f372b9b413793015f, before 6ed94d905f97af188323f042698ae841c02293b4
Other versions: unaffected
mdex_native
package mdex_native
affected from 0.1.0, before 0.2.3
Other versions: unaffected
mdex_native
package leandrocp/mdex_native
affected from 956528c5e31746253347029e810a969ab916fd27, before cbd927fb5061b488de8d90a8ef6df65718ca1fe6
Other versions: unaffected

Is my server affected?

Find the installed version of mdex and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i mdex
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-53429 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-53429

RHEL, Rocky, Alma, Fedora

rpm -q mdex
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-53429

Alpine

apk list --installed | grep -i mdex

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-53429
trivy image --scanners vuln IMAGE | grep CVE-2026-53429

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Patches and release notes

Exploits and proof of concept

Other references

Source: the record CVE-2026-53429 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.