{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.1.9"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "50e06d41323cdeb0612025d5a03d4d08e5eaf85b"
            }
          ],
          "repo": "https://github.com/tatsh/bincookie",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-22pc-xxw4-q849"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-122",
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55246.json"
  },
  "details": "bincookie is a header-only binarycookies parser. Prior to 0.1.9, bincookie_init_file() in bincookie.h allocates a buffer using the actual .binarycookies file length but trusts the file-controlled num_pages field as the loop bound for byte-swapping page_sizes entries. A crafted file can make the loop read and write beyond the heap allocation, and related unvalidated page sizes and cookie_offsets can drive additional out-of-bounds accesses in page and cookie iteration. Applications that parse an attacker-supplied binarycookies file may crash or suffer heap corruption that can potentially enable code execution. This issue is fixed in version 0.1.9.",
  "id": "CVE-2026-55246",
  "modified": "2026-10-16T10:30:37.648993215Z",
  "published": "2026-10-15T17:06:59.783Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55246.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Tatsh/bincookie/commit/bc1433c1ee4d0284750ff85c8437f1b8df91ab3b"
    },
    {
      "type": "WEB",
      "url": "https://github.com/Tatsh/bincookie/releases/tag/v0.1.9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Tatsh/bincookie/security/advisories/GHSA-22pc-xxw4-q849"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-55246"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "bincookie: Heap buffer overflow via unvalidated `num_pages` when parsing a `.binarycookies` file"
}