
CVE catalog
CVE-2026-35201
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
- Severity
- Medium · CVSS 5.9
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.27% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | discount | sid | 2.2.7-2.1 | vulnerable |
| Debian | discount | forky | 2.2.7-2.1 | vulnerable |
| Debian | discount | trixie | 2.2.7-2.1 | vulnerable |
| Debian | discount | bookworm | 2.2.7-2 | vulnerable |
| Cpe | discount | Not reported | Not reported | vulnerable |
| Cpe | rdiscount | Not reported | 2.2.7.4 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | discount | source | sid | (unfixed) | not yet assigned | Not reported | [1136025] |
| Debian | discount | source | forky | (unfixed) | not yet assigned | Not reported | [1136025] |
| Debian | discount | source | trixie | (unfixed) | not yet assigned | Not reported | [1136025] |
| Debian | discount | source | bookworm | (unfixed) | not yet assigned | Not reported | [1136025] |
| Cpe | rdiscount | cpe | Not reported | 2.2.7.4 | Not reported | Not reported | Not reported |
Notes
[trixie] discount: Minor issue [bookworm] discount: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [discount]Affected
Details (2)
2.2.7-2· amd64 · bookwormAffected
nvd · discount · debian · bookworm; nvd · discount · debian · 12
2.2.7-2· arm64 · bookwormAffected
nvd · discount · debian · bookworm; nvd · discount · debian · 12
- [libmarkdown2]Affected
Source package: [discount]
Details (2)
2.2.7-2· amd64 · bookwormAffected
nvd · discount · debian · bookworm; nvd · discount · debian · 12
2.2.7-2· arm64 · bookwormAffected
nvd · discount · debian · bookworm; nvd · discount · debian · 12
- [libmarkdown2-dev]Affected
Source package: [discount]
Details (2)
2.2.7-2· amd64 · bookwormAffected
nvd · discount · debian · bookworm; nvd · discount · debian · 12
2.2.7-2· arm64 · bookwormAffected
nvd · discount · debian · bookworm; nvd · discount · debian · 12
[Debian 13 (Trixie)]
- [discount]Affected
Details (2)
2.2.7-2.1· amd64 · trixieAffected
nvd · discount · debian · 13
2.2.7-2.1· arm64 · trixieAffected
nvd · discount · debian · 13
- [libmarkdown2]Affected
Source package: [discount]
Details (2)
2.2.7-2.1· amd64 · trixieAffected
nvd · discount · debian · 13
2.2.7-2.1· arm64 · trixieAffected
nvd · discount · debian · 13
- [libmarkdown2-dev]Affected
Source package: [discount]
Details (2)
2.2.7-2.1· amd64 · trixieAffected
nvd · discount · debian · 13
2.2.7-2.1· arm64 · trixieAffected
nvd · discount · debian · 13
Observed: