CVE-2026-35201
MediumCVSS 5.9Exploitation Probability (EPSS)
Low risk20th percentile - higher than 20% of all known CVEs
Summary
The Discount library, a C implementation of Markdown, has a signed length truncation bug causing an out-of-bounds read. Inputs larger than INT_MAX are truncated to a signed int before parsing, allowing read past the buffer and process crash. Affects versions from 1.3.1.1 to 2.2.7.3.
Risk Assessment
An attacker can cause a process crash by sending specially crafted input, leading to denial of service.
Recommendation
Update the Discount library to version 2.2.7.4 or later.
Original NVD description (English source)
Discount is an implementation of John Gruber's Markdown markup language in C. From 1.3.1.1 to before 2.2.7.4, a signed length truncation bug causes an out-of-bounds read in the default Markdown parse path. Inputs larger than INT_MAX are truncated to a signed int before entering the native parser, allowing the parser to read past the end of the supplied buffer and crash the process. This vulnerability is fixed in 2.2.7.4.

