{"id":"CVE-2026-35201","summary":"Discount has an Out-of-bounds Read in rdiscount","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.","aliases":["GHSA-6r34-94wq-jhrc"],"modified":"2026-08-12T03:51:33.443009242Z","published":"2026-04-06T19:49:48.806Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-125"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35201.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35201.json"},{"type":"ADVISORY","url":"https://github.com/davidfstr/rdiscount/security/advisories/GHSA-6r34-94wq-jhrc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35201"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/davidfstr/rdiscount","events":[{"introduced":"d7b94ddf7d35a24508049aa710c0922e4d6a53cb"},{"fixed":"28bd9171da016542a4afbce1647521e381ef9a2e"}],"database_specific":{"cpe":"cpe:2.3:a:dafoster:rdiscount:*:*:*:*:*:ruby:*:*","extracted_events":[{"introduced":"1.3.1.1"},{"fixed":"2.2.7.4"}],"source":["AFFECTED_FIELD","CPE_RANGE"]}}],"versions":["2.2.7.3","2.2.7.2","2.2.7.1","2.2.7","2.2.0.2","2.2.0.1","2.2.0","2.1.8","2.1.7.1","2.1.7","2.1.6","2.0.7.3","2.0.7.2","2.0.7.1","2.0.7","1.6.8","1.6.5","1.6.3.2","1.6.3.1","1.5.8.1","1.5.8","1.5.5","1.3.5","1.3.4","1.3.1.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-35201.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}