Vulnerability · Published Apr 6, 2026 · Assigned by GitHub_M

CVE-2026-35201Discount has an Out-of-bounds Read in rdiscount

Medium 5.9

In plain English

A medium-severity out-of-bounds read in rdiscount from davidfstr. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.3%top 78.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12discountno fix listedDEBIAN-CVE-2026-35201
Debian:13discountno fix listedDEBIAN-CVE-2026-35201
Debian:14discountno fix listedDEBIAN-CVE-2026-35201
RubyGemsrdiscount2.2.7.4GHSA-6r34-94wq-jhrc
Ubuntu:22.04:LTSdiscountno fix listedUBUNTU-CVE-2026-35201
Ubuntu:24.04:LTSdiscountno fix listedUBUNTU-CVE-2026-35201
Ubuntu:25.10discountno fix listedUBUNTU-CVE-2026-35201
Ubuntu:26.04:LTSdiscountno fix listedUBUNTU-CVE-2026-35201
Ubuntu:26.10discountno fix listedUBUNTU-CVE-2026-35201

Affected products (as reported)

VendorProductVersions
davidfstr rdiscount >= 1.3.1.1, < 2.2.7.4

Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References