Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-35201: CWE-125: Out-of-bounds Read in davidfstr rdiscount

0
Medium
VulnerabilityCVE-2026-35201cvecve-2026-35201cwe-125
Published: Mon Apr 06 2026 (04/06/2026, 19:49:48 UTC)
Source: CVE Database V5
Vendor/Project: davidfstr
Product: 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

AILast updated: 04/07/2026, 05:38:12 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses