Skip to main content
← All vulnerabilities
CVE-2026-55246GHSA-22PC-XXW4-Q849

bincookie: Heap buffer overflow via unvalidated `num_pages` when parsing a `.binarycookies` file

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.1.9
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Tatsh bincookie

    fixed in 0.1.9

References 3

GitHub · Tatsh/bincookie