CVE-2026-35201Dafoster Rdiscount
Medium 5.9 No auth needed
Follow: this CVE · Dafoster · Dafoster Rdiscount We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 5.9
- EPSS
- —
- Auth required
- No
- Published
- Apr 6, 2026
- Updated
- Jul 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Rdiscount.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | rdiscount |
≥ 1.3.1.1 < 2.2.7.4 |
2.2.7.4 |
gem "rdiscount", ">= 2.2.7.4" |
Per OSV / GitHub Advisories (GHSA-6r34-94wq-jhrc). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| dafoster | rdiscount | ≥ 1.3.1.1 < 2.2.7.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Vendor Advisory