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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| davidfstr | rdiscount | >= 1.3.1.1, < 2.2.7.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | discount | No fix yet | — |
| Debian 13 | discount | No fix yet | — |
| Debian 12 | discount | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | discount | No fix yet | — |
| Ubuntu 26.04 LTS | discount | No fix yet | — |
| Ubuntu 25.10 | discount | No fix yet | — |
| Ubuntu 24.04 LTS | discount | No fix yet | — |
| Ubuntu 22.04 LTS | discount | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | discount | No fix yet | — |
| Ubuntu 18.04 LTS | discount | No fix yet | — |
| Ubuntu 16.04 LTS | discount | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | rubygem-rdiscount | 2.2.7.4-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | rdiscount | >= 1.3.1.1, < 2.2.7.4 | 2.2.7.4 | GHSA-6r34-94wq-jhrc |