CVE-2026-35201: CWE-125: Out-of-bounds Read in davidfstr rdiscount
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.
AI Analysis
Technical Summary
The rdiscount library, a C implementation of John Gruber's Markdown language, contains a signed length truncation bug in versions from 1.3.1.1 to before 2.2.7.4. When processing inputs larger than INT_MAX, the length is truncated to a signed integer before parsing, which leads to an out-of-bounds read in the default Markdown parse path. This can cause the parser to read past the end of the supplied buffer, resulting in a process crash. The vulnerability is identified as CWE-125 (Out-of-bounds Read) and has a CVSS v3.1 score of 5.9 (medium severity). The issue is resolved in rdiscount version 2.2.7.4.
Potential Impact
The vulnerability can cause a denial of service by crashing the process that uses the affected rdiscount versions when parsing specially crafted Markdown input larger than INT_MAX. There is no indication of confidentiality or integrity impact, and no known exploits are reported in the wild.
Mitigation Recommendations
Upgrade to rdiscount version 2.2.7.4 or later, where this vulnerability is fixed. Since the vendor advisory or patch links are not provided, verify the version upgrade from the official rdiscount repository or vendor source. Patch status is confirmed by the version fix information in the description.
CVE-2026-35201: CWE-125: Out-of-bounds Read in davidfstr rdiscount
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The rdiscount library, a C implementation of John Gruber's Markdown language, contains a signed length truncation bug in versions from 1.3.1.1 to before 2.2.7.4. When processing inputs larger than INT_MAX, the length is truncated to a signed integer before parsing, which leads to an out-of-bounds read in the default Markdown parse path. This can cause the parser to read past the end of the supplied buffer, resulting in a process crash. The vulnerability is identified as CWE-125 (Out-of-bounds Read) and has a CVSS v3.1 score of 5.9 (medium severity). The issue is resolved in rdiscount version 2.2.7.4.
Potential Impact
The vulnerability can cause a denial of service by crashing the process that uses the affected rdiscount versions when parsing specially crafted Markdown input larger than INT_MAX. There is no indication of confidentiality or integrity impact, and no known exploits are reported in the wild.
Mitigation Recommendations
Upgrade to rdiscount version 2.2.7.4 or later, where this vulnerability is fixed. Since the vendor advisory or patch links are not provided, verify the version upgrade from the official rdiscount repository or vendor source. Patch status is confirmed by the version fix information in the description.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-01T18:48:58.937Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d4982faaed68159ac9fe05
Added to database: 4/7/2026, 5:37:51 AM
Last enriched: 4/7/2026, 5:38:12 AM
Last updated: 4/8/2026, 1:52:41 AM
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.