{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.MDEx'","comrak_nif"],"packageName":"mdex","packageURL":"pkg:hex/mdex","product":"mdex","programFiles":["native/comrak_nif/src/types/document.rs"],"programRoutines":[{"name":"comrak_nif::document_to_html_with_options"},{"name":"'Elixir.MDEx.Native':document_to_html_with_options/2"},{"name":"'Elixir.MDEx':to_html/1"}],"repo":"https://github.com/leandrocp/mdex","vendor":"leandrocp","versions":[{"lessThan":"0.12.3","status":"affected","version":"0.11.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.MDEx'","comrak_nif"],"packageName":"leandrocp/mdex","packageURL":"pkg:github/leandrocp/mdex","product":"mdex","programFiles":["native/comrak_nif/src/types/document.rs"],"programRoutines":[{"name":"comrak_nif::document_to_html_with_options"},{"name":"'Elixir.MDEx.Native':document_to_html_with_options/2"},{"name":"'Elixir.MDEx':to_html/1"}],"repo":"https://github.com/leandrocp/mdex","vendor":"leandrocp","versions":[{"lessThan":"6ed94d905f97af188323f042698ae841c02293b4","status":"affected","version":"81e4d14dd3aa5b206e395c7f372b9b413793015f","versionType":"git"}]},{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.MDExNative.Comrak'","mdex_native_nif"],"packageName":"mdex_native","packageURL":"pkg:hex/mdex_native","product":"mdex_native","programFiles":["native/mdex_native_nif/src/types/document.rs"],"programRoutines":[{"name":"mdex_native_nif::document_to_html_with_options"},{"name":"'Elixir.MDExNative.Native':document_to_html_with_options/2"},{"name":"'Elixir.MDExNative.Comrak':document_to_html/2"}],"repo":"https://github.com/leandrocp/mdex_native","vendor":"leandrocp","versions":[{"lessThan":"0.2.3","status":"affected","version":"0.1.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.MDExNative.Comrak'","mdex_native_nif"],"packageName":"leandrocp/mdex_native","packageURL":"pkg:github/leandrocp/mdex_native","product":"mdex_native","programFiles":["native/mdex_native_nif/src/types/document.rs"],"programRoutines":[{"name":"mdex_native_nif::document_to_html_with_options"},{"name":"'Elixir.MDExNative.Native':document_to_html_with_options/2"},{"name":"'Elixir.MDExNative.Comrak':document_to_html/2"}],"repo":"https://github.com/leandrocp/mdex_native","vendor":"leandrocp","versions":[{"lessThan":"cbd927fb5061b488de8d90a8ef6df65718ca1fe6","status":"affected","version":"956528c5e31746253347029e810a969ab916fd27","versionType":"git"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:leandrocp:mdex:*:*:*:*:*:*:*:*","versionEndExcluding":"0.12.3","versionStartIncluding":"0.11.0","vulnerable":true}],"negate":false,"operator":"AND"},{"cpeMatch":[{"criteria":"cpe:2.3:a:leandrocp:mdex_native:*:*:*:*:*:*:*:*","versionEndExcluding":"0.2.3","versionStartIncluding":"0.1.0","vulnerable":true}],"negate":false,"operator":"AND"}],"operator":"OR"}],"credits":[{"lang":"en","type":"finder","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Leandro Pereira"},{"lang":"en","type":"analyst","value":"Jonatan Männchen / EEF"}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"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.<p>The native rendering code permanently leaks memory when rendering a document that contains escaped-tag nodes. The conversion of each <tt>%MDEx.EscapedTag{}</tt> node into its native representation (<tt>From&lt;ExEscapedTag&gt; for NodeValue</tt> in the Rust NIF) calls <tt>Box::leak</tt> on the caller-supplied <tt>literal</tt> string, which surrenders the backing allocation so that it lives for the entire lifetime of the operating system process and is never freed.</p><p>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 <tt>literal_size &times; node_count</tt> bytes that can never be reclaimed, and repeated renders accumulate without bound. Rendering reaches this path through the public <tt>MDEx.to_html/1</tt> entry point and any other API that renders a supplied <tt>%MDEx.Document{}</tt>.</p><p>Any application that uses <tt>mdex</tt> (or <tt>mdex_native</tt> 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.</p><p>The vulnerable native code originally shipped inside <tt>mdex</tt> (in <tt>native/comrak_nif/src/types/document.rs</tt>) and was later extracted into the separate <tt>mdex_native</tt> package (<tt>native/mdex_native_nif/src/types/document.rs</tt>), where it remains unpatched.</p><p>This issue affects mdex from 0.11.0 before 0.12.3, and mdex_native from 0.1.0 before 0.2.3.</p>"}],"value":"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.\n\nThe 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.\n\nBoth 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{}.\n\nAny 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.\n\nThe 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.\n\nThis issue affects mdex from 0.11.0 before 0.12.3, and mdex_native from 0.1.0 before 0.2.3."}],"impacts":[{"capecId":"CAPEC-130","descriptions":[{"lang":"en","value":"CAPEC-130 Excessive Allocation"}]}],"metrics":[{"cvssV4_0":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":6.9,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-401","description":"CWE-401 Missing Release of Memory after Effective Lifetime","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-06-29T19:07:16.954Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"tags":["vendor-advisory","related"],"url":"https://github.com/leandrocp/mdex_native/security/advisories/GHSA-cmvp-gp9f-23xw"},{"tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-53429.html"},{"tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-53429"},{"tags":["patch"],"url":"https://github.com/leandrocp/mdex_native/commit/cbd927fb5061b488de8d90a8ef6df65718ca1fe6"}],"source":{"discovery":"EXTERNAL"},"title":"Unbounded native memory leak in mdex escaped-tag rendering enables unauthenticated denial of service","x_generator":{"engine":"cvelib 1.8.0"}}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-53429","datePublished":"2026-06-29T19:07:16.954Z","dateReserved":"2026-06-09T11:01:47.529Z","dateUpdated":"2026-06-29T19:07:16.954Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}