{"id":"CVE-2026-55246","summary":"bincookie: Heap buffer overflow via unvalidated `num_pages` when parsing a `.binarycookies` file","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.","aliases":["GHSA-22pc-xxw4-q849"],"modified":"2026-10-16T10:30:37.648993215Z","published":"2026-10-15T17:06:59.783Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55246.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-122","CWE-787"]},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tatsh/bincookie","events":[{"introduced":"0"},{"fixed":"50e06d41323cdeb0612025d5a03d4d08e5eaf85b"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0"},{"fixed":"0.1.9"}]}}],"versions":["v0.1.8","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55246.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}