Read the docs
TI-2026-27354 Aliases CVE-2026-35201GHSA-6r34-94wq-jhrc

Discount has an Out-of-bounds Read in rdiscount

Priority MEDIUM 60CWE-125Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-125 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00285 21st percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed rdiscount (davidfstr): 2.2.7.4rdiscount (RubyGems): 2.2.7.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
davidfstrrdiscount1.3.1.1 to before 2.2.7.42.2.7.4Patch availableCNA
—rdiscount (RubyGems)1.3.1.1 to before 2.2.7.42.2.7.4Patch availableGHSA-6r34-94wq-jhrc
  • rdiscount Vendordavidfstr Affected 1.3.1.1 to before 2.2.7.4 Fixed in 2.2.7.4 Patch available CNA
  • rdiscount (RubyGems) Vendor— Affected 1.3.1.1 to before 2.2.7.4 Fixed in 2.2.7.4 Patch available GHSA-6r34-94wq-jhrc

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:dafoster:rdiscount:*:*:*:*:*:ruby:*:*1.3.1.1 to before 2.2.7.4VulnerableDafoster
  • cpe:2.3:a:dafoster:rdiscount:*:*:*:*:*:ruby:*:* Versions 1.3.1.1 to before 2.2.7.4 Vulnerable ·Dafoster

Remediation

  • Fix · CNA rdiscount (davidfstr) Fixed in 2.2.7.4
  • Fix · GHSA-6r34-94wq-jhrc rdiscount (RubyGems) Fixed in 2.2.7.4 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-35201
  2. 2026-10-03 Alias added: GHSA-6r34-94wq-jhrc

References

Sources