{
  "affected": [
    {
      "ranges": [
        {
          "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"
            ]
          },
          "events": [
            {
              "introduced": "d7b94ddf7d35a24508049aa710c0922e4d6a53cb"
            },
            {
              "fixed": "28bd9171da016542a4afbce1647521e381ef9a2e"
            }
          ],
          "repo": "https://github.com/davidfstr/rdiscount",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-6r34-94wq-jhrc"
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-35201",
  "modified": "2026-08-12T03:51:33.443009242Z",
  "published": "2026-04-06T19:49:48.806Z",
  "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"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Discount has an Out-of-bounds Read in rdiscount"
}