Discount has an Out-of-bounds Read in rdiscount (davidfstr rdiscount)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.27 % · percentile 20 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-125 — Out-of-bounds Read
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
| CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD · security-advisories@github.com (Secondary) |
Advisories
- GHSA-6r34-94wq-jhrc — rdiscount has an Out-of-bounds Read
European references
- ENISA EUVD · EUVD-2026-19474
- GCVE · GCVE-0-2026-35201
CERT-FR advisories
- CERTFR-2026-AVI-0456 — Multiples vulnérabilités dans les produits Microsoft · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:dafoster:rdiscount:*:*:*:*:*:ruby:*:*≥ 1.3.1.1 < 2.2.7.4
Affected products
| Product | Versions |
|---|---|
| davidfstr · rdiscount | affected >= 1.3.1.1, < 2.2.7.4 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |