Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-35201 EUVD-2026-19474GHSA-6r34-94wq-jhrc

Discount has an Out-of-bounds Read in rdiscount

Published Apr 6, 2026 · Updated Apr 7, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
davidfstr rdiscount >= 1.3.1.1, < 2.2.7.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 discount No fix yet —
Debian 13 discount No fix yet —
Debian 12 discount No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 discount No fix yet —
Ubuntu 26.04 LTS discount No fix yet —
Ubuntu 25.10 discount No fix yet —
Ubuntu 24.04 LTS discount No fix yet —
Ubuntu 22.04 LTS discount No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS discount No fix yet —
Ubuntu 18.04 LTS discount No fix yet —
Ubuntu 16.04 LTS discount No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 rubygem-rdiscount 2.2.7.4-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems rdiscount >= 1.3.1.1, < 2.2.7.4 2.2.7.4 GHSA-6r34-94wq-jhrc

References