Use-after-free in cmark-gfm - #VU168055

 

Use-after-free in cmark-gfm - #VU168055

Published: November 19, 2026


Vulnerability identifier: #VU168055
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose uninitialized memory and alter the generated HTML output.

The vulnerability exists due to a read-only use-after-free in the inline footnote parser when it frees a memory chunk that other nodes still reference. A remote attacker can supply crafted Markdown to a local cmark-gfm process with footnote parsing enabled to expose memory contents in the generated HTML.


Affected software

cmark-gfm

Remediation

Install security update from vendor's website.

cmark-gfm - update to 0.29.0.gfm.14

External References

Related Security Bulletins