CVE-2026-35201 Details
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.
A signed length truncation vulnerability has been identified in RDiscount, a C implementation of Markdown. This issue affects versions 1.3.1.1 prior to 2.2.7.4. The vulnerability allows for an out-of-bounds read in the default Markdown parsing process. When inputs exceed INT_MAX, they are truncated to a signed integer, enabling the parser to read beyond the end of the provided buffer, resulting in a process crash. The vulnerability arises because the parser does not properly validate input lengths before processing, allowing for exploitation with multi-GB inputs of attacker-controlled Markdown.
Users can upgrade to RDiscount version 2.2.7.4 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/davidfstr/rdiscount/security/advisories/GHSA-6r34-94wq-jhrc | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| dafoster rdiscount | >= 1.3.1.1, < 2.2.7.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 16, 2026 | Initial Analysis | [email protected] |
| Apr 6, 2026 | New CVE Received | [email protected] |