MEDIUM
Discount has an Out-of-bounds Read in rdiscount
Published Apr 6, 2026
5.9
MEDIUMCVSS 3.1
EPSS 0.39%
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 products
-
- Version >= 1.3.1.1, < 2.2.7.4StatusaffectedConstraints-
- Version
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Weaknesses (1)
References (6)
- http://github.com/davidfstr/rdiscount/releases/tag/2.2.7.4
- https://github.com/advisories/GHSA-6r34-94wq-jhrc Advisory
- https://github.com/davidfstr/rdiscount/commit/b1a16445e92e0d12c07594dedcdc56f80b317761
- https://github.com/davidfstr/rdiscount/security/advisories/GHSA-6r34-94wq-jhrc x_refsource_CONFIRMExploitVendor Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rdiscount/CVE-2026-35201.yml
- https://nvd.nist.gov/vuln/detail/CVE-2026-35201
Change history (0)
No recorded changes yet.
Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Apr 6, 2026
Updated Apr 7, 2026
Reserved Apr 1, 2026
Link CVE-2026-35201
CISA Vulnrichment
GHSA-6R34-94WQ-JHRC Updated Apr 7, 2026