CVEfocus › CVE database › CVE-2026-35201

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

CVSS 5.9 MediumEPSS 0.3% (higher than 22% of CVEs)Published 2026-04-06Updated 2026-04-07Assigner: GitHub_M

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.

CWE-125

What to do

Fixed builds are available from RubyGems: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
7Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10discountFix pendingUBUNTU-CVE-2026-35201
Ubuntu 26.04discountUnder investigationUBUNTU-CVE-2026-35201
Ubuntu 25.10discountWill not fix
This is just a denial of service issue with an extremely large malicious markdown file.
UBUNTU-CVE-2026-35201
Ubuntu 24.04discountUnder investigationUBUNTU-CVE-2026-35201
Ubuntu 22.04discountUnder investigationUBUNTU-CVE-2026-35201
Ubuntu 20.04discountFix pendingUBUNTU-CVE-2026-35201
Ubuntu 18.04discountFix pendingUBUNTU-CVE-2026-35201
Ubuntu 16.04discountFix pendingUBUNTU-CVE-2026-35201
Debian 14discountFix pendingDEBIAN-CVE-2026-35201
Debian 13discountFix pendingDEBIAN-CVE-2026-35201
Debian 12discountFix pendingDEBIAN-CVE-2026-35201
RubyGems libraryrdiscountFixed2.2.7.4GHSA-6r34-94wq-jhrc

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.