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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | discount | no fix listed | DEBIAN-CVE-2026-35201 |
| Debian:13 | discount | no fix listed | DEBIAN-CVE-2026-35201 |
| Debian:14 | discount | no fix listed | DEBIAN-CVE-2026-35201 |
| RubyGems | rdiscount | 2.2.7.4 | GHSA-6r34-94wq-jhrc |
| Ubuntu:22.04:LTS | discount | no fix listed | UBUNTU-CVE-2026-35201 |
| Ubuntu:24.04:LTS | discount | no fix listed | UBUNTU-CVE-2026-35201 |
| Ubuntu:25.10 | discount | no fix listed | UBUNTU-CVE-2026-35201 |
| Ubuntu:26.04:LTS | discount | no fix listed | UBUNTU-CVE-2026-35201 |
| Ubuntu:26.10 | discount | no fix listed | UBUNTU-CVE-2026-35201 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/davidfstr/rdiscount/security/advisories/GHSA-6r34-94wq-jhrc x_refsource_CONFIRM