CVE catalog

CVE-2026-35201

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

[CVE catalog]

Severity
Medium · CVSS 5.9
Published
Source
[NVD] · [CVE record]
EPSS
0.27% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiandiscountsid2.2.7-2.1vulnerable
Debiandiscountforky2.2.7-2.1vulnerable
Debiandiscounttrixie2.2.7-2.1vulnerable
Debiandiscountbookworm2.2.7-2vulnerable
CpediscountNot reportedNot reportedvulnerable
CperdiscountNot reported2.2.7.4fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiandiscountsourcesid(unfixed)not yet assignedNot reported[1136025]
Debiandiscountsourceforky(unfixed)not yet assignedNot reported[1136025]
Debiandiscountsourcetrixie(unfixed)not yet assignedNot reported[1136025]
Debiandiscountsourcebookworm(unfixed)not yet assignedNot reported[1136025]
CperdiscountcpeNot reported2.2.7.4Not reportedNot reportedNot reported

[Debian bug #1136025]

Notes

[trixie] discount: Minor issue [bookworm] discount: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [discount]Affected
    Details (2)
    • 2.2.7-2 · amd64 · bookworm

      Affected

      nvd · discount · debian · bookworm; nvd · discount · debian · 12

    • 2.2.7-2 · arm64 · bookworm

      Affected

      nvd · discount · debian · bookworm; nvd · discount · debian · 12

  • [libmarkdown2]Affected

    Source package: [discount]

    Details (2)
    • 2.2.7-2 · amd64 · bookworm

      Affected

      nvd · discount · debian · bookworm; nvd · discount · debian · 12

    • 2.2.7-2 · arm64 · bookworm

      Affected

      nvd · discount · debian · bookworm; nvd · discount · debian · 12

  • Source package: [discount]

    Details (2)
    • 2.2.7-2 · amd64 · bookworm

      Affected

      nvd · discount · debian · bookworm; nvd · discount · debian · 12

    • 2.2.7-2 · arm64 · bookworm

      Affected

      nvd · discount · debian · bookworm; nvd · discount · debian · 12

[Debian 13 (Trixie)]

  • [discount]Affected
    Details (2)
    • 2.2.7-2.1 · amd64 · trixie

      Affected

      nvd · discount · debian · 13

    • 2.2.7-2.1 · arm64 · trixie

      Affected

      nvd · discount · debian · 13

  • [libmarkdown2]Affected

    Source package: [discount]

    Details (2)
    • 2.2.7-2.1 · amd64 · trixie

      Affected

      nvd · discount · debian · 13

    • 2.2.7-2.1 · arm64 · trixie

      Affected

      nvd · discount · debian · 13

  • Source package: [discount]

    Details (2)
    • 2.2.7-2.1 · amd64 · trixie

      Affected

      nvd · discount · debian · 13

    • 2.2.7-2.1 · arm64 · trixie

      Affected

      nvd · discount · debian · 13

Observed:

References