{"id":"UBUNTU-CVE-2026-35201","details":"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.","modified":"2026-05-20T16:25:35.526321682Z","published":"2026-04-06T20:16:00Z","upstream":["CVE-2026-35201"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-35201"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-35201"},{"type":"REPORT","url":"https://github.com/davidfstr/rdiscount/security/advisories/GHSA-6r34-94wq-jhrc"}],"affected":[{"package":{"name":"discount","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/discount?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.8-2"],"ecosystem_specific":{"binaries":[{"binary_name":"discount","binary_version":"2.1.8-2"},{"binary_name":"libmarkdown2","binary_version":"2.1.8-2"}],"priority_reason":"Only a denial of service issue with an extremely large markdown file"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35201.json"}},{"package":{"name":"discount","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/discount?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.8-2","2.2.3b8-2"],"ecosystem_specific":{"binaries":[{"binary_name":"discount","binary_version":"2.2.3b8-2"},{"binary_name":"libmarkdown2","binary_version":"2.2.3b8-2"}],"priority_reason":"Only a denial of service issue with an extremely large markdown file"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35201.json"}},{"package":{"name":"discount","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/discount?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.6-1"],"ecosystem_specific":{"priority_reason":"Only a denial of service issue with an extremely large markdown file","binaries":[{"binary_name":"discount","binary_version":"2.2.6-1"},{"binary_version":"2.2.6-1","binary_name":"libmarkdown2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35201.json"}},{"package":{"name":"discount","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/discount?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.6-1ubuntu2","2.2.7-2"],"ecosystem_specific":{"priority_reason":"Only a denial of service issue with an extremely large markdown file","binaries":[{"binary_version":"2.2.7-2","binary_name":"discount"},{"binary_name":"libmarkdown2","binary_version":"2.2.7-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35201.json"}},{"package":{"name":"discount","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/discount?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.7-2","2.2.7-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"discount","binary_version":"2.2.7-2build1"},{"binary_version":"2.2.7-2build1","binary_name":"libmarkdown2"}],"priority_reason":"Only a denial of service issue with an extremely large markdown file"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35201.json"}},{"package":{"name":"discount","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/discount?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.7-2.1"],"ecosystem_specific":{"priority_reason":"Only a denial of service issue with an extremely large markdown file","binaries":[{"binary_name":"discount","binary_version":"2.2.7-2.1"},{"binary_name":"libmarkdown2","binary_version":"2.2.7-2.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35201.json"}},{"package":{"name":"discount","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/discount?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.7-2.1","2.2.7-2.1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"discount","binary_version":"2.2.7-2.1build1"},{"binary_name":"libmarkdown2","binary_version":"2.2.7-2.1build1"}],"priority_reason":"Only a denial of service issue with an extremely large markdown file"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-35201.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}