Skip to content
Heist/ feed
High

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-55246

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-55246

bincookie

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "Tatsh",
    "product": "bincookie",
    "versions": [
      {
        "status": "affected",
        "version": "< 0.1.9"
      }
    ]
  }
]
Related CVEs
CVE-2026-55246

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#30044 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement