# CVE-2026-55246: bincookie: Heap buffer overflow via unvalidated `num_pages` when parsing a `.binarycookies` file

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 5% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-15T17:06:59.783Z
- Modified: 2026-10-16T20:04:29.760Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Tatsh bincookie: < 0.1.9

## References

- <https://github.com/Tatsh/bincookie/security/advisories/GHSA-22pc-xxw4-q849> (exploit)
- <https://github.com/Tatsh/bincookie/commit/bc1433c1ee4d0284750ff85c8437f1b8df91ab3b>
- <https://github.com/Tatsh/bincookie/releases/tag/v0.1.9>

## Sources

- CVE List: [CVE-2026-55246](https://www.cve.org/CVERecord?id=CVE-2026-55246), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-55246](https://nvd.nist.gov/vuln/detail/CVE-2026-55246), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-55246 · Whole record: https://cve.day/CVE-2026-55246.json · Rebuilt by cve.day 2026-11-25T22:59:44.915Z
