CVE-2026-35201
MEDIUM 5.9CVSS 3.1rdiscount has an Out-of-bounds Read
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.
- Published
- 6 Apr 2026
- Last modified
- 24 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-125
- Also known as
- GHSA-6r34-94wq-jhrc
- Sources
- NVDJSONOSV GHSA-6r34-94wq-jhrcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | 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 |
| OSV | GitHub | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | dafoster | rdiscountcpe:2.3:a:dafoster:rdiscount:*:*:*:*:*:ruby:*:* |
>= 1.3.1.1, < 2.2.7.4 | 2.2.7.4 |
| OSV | RubyGems | rdiscount | >= 1.3.1.1, < 2.2.7.4 | 2.2.7.4 |
References
- https://github.com/davidfstr/rdiscount/security/advisories/GHSA-6r34-94wq-jhrc · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-35201 · ADVISORY
- https://github.com/davidfstr/rdiscount/commit/b1a16445e92e0d12c07594dedcdc56f80b317761 · WEB
- https://github.com/davidfstr/rdiscount · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rdiscount/CVE-2026-35201.yml · WEB
- http://github.com/davidfstr/rdiscount/releases/tag/2.2.7.4 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 6 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Apr 2026)