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.
Severity (CVSS)
| Base score | 7.8 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Provided by | CNA |
Weaknesses
- CWE-122 — CWE-122: Heap-based Buffer Overflow
- CWE-787 — CWE-787: Out-of-bounds Write
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Tatsh | bincookie | < 0.1.9 [affected] |
References
- https://github.com/Tatsh/bincookie/security/advisories/GHSA-22pc-xxw4-q849 (x_refsource_CONFIRM)
- https://github.com/Tatsh/bincookie/commit/bc1433c1ee4d0284750ff85c8437f1b8df91ab3b (x_refsource_MISC)
- https://github.com/Tatsh/bincookie/releases/tag/v0.1.9 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 16 Oct 2026 07:00 UTC.