What’s Vulnerable › Vulnerabilities
CVE-2026-35201: Discount has an Out-of-bounds Read in rdiscount
- Severity: medium (CVSS 5.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-04-06 · updated 2026-07-24
- Weakness: CWE-125
Description
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.
Affected products
- davidfstr rdiscount: from 1.3.1.1 before 2.2.7.4 — fixed in 2.2.7.4
How to fix
Upgrade to a fixed version: davidfstr rdiscount 2.2.7.4. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-35201 or the next vulnerability affects your stack