Medium severity5.9NVD Advisory· Published Apr 6, 2026· Updated Apr 16, 2026
CVE-2026-35201
CVE-2026-35201
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
rdiscountRubyGems | >= 1.3.1.1, < 2.2.7.4 | 2.2.7.4 |
Affected products
2Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-6r34-94wq-jhrcghsaADVISORY
- github.com/davidfstr/rdiscount/security/advisories/GHSA-6r34-94wq-jhrcnvdVendor AdvisoryExploitWEB
- nvd.nist.gov/vuln/detail/CVE-2026-35201ghsaADVISORY
- github.com/davidfstr/rdiscount/releases/tag/2.2.7.4ghsaWEB
- github.com/davidfstr/rdiscount/commit/b1a16445e92e0d12c07594dedcdc56f80b317761ghsaWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/rdiscount/CVE-2026-35201.ymlghsaWEB
News mentions
0No linked articles in our index yet.