Discount has an Out-of-bounds Read in rdiscount
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| davidfstr | rdiscount | 1.3.1.1 to before 2.2.7.4 | 2.2.7.4 | Patch available | CNA |
| — | rdiscount (RubyGems) | 1.3.1.1 to before 2.2.7.4 | 2.2.7.4 | Patch available | GHSA-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
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
- 2026-10-02 Threatist record created from CVE-2026-35201
- 2026-10-03 Alias added: GHSA-6r34-94wq-jhrc
References
Sources
- CVE-2026-35201 · CVE Program
- CVE-2026-35201 · NVD
- FIRST EPSS
- GHSA-6r34-94wq-jhrc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences