CVE-2026-35201

Discount has an Out-of-bounds Read in rdiscount

Published Apr 6, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6r34-94wq-jhrc rdiscount has an Out-of-bounds Read
History
Type Values Removed Values Added
First Time appeared Dafoster
Dafoster rdiscount
CPEs cpe:2.3:a:dafoster:rdiscount:*:*:*:*:*:ruby:*:*
Vendors & Products Dafoster
Dafoster rdiscount
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Davidfstr
Davidfstr rdiscount
Vendors & Products Davidfstr
Davidfstr rdiscount
Type Values Removed Values Added
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.
Title Discount has an Out-of-bounds Read in rdiscount
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 7, 2026, 4:21 PM
Reserved
Apr 1, 2026, 6:48 PM
Status
Analyzed
Published
Apr 6, 2026, 8:16 PM
Modified
Jul 24, 2026, 9:10 PM