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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-122",
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55246.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.1.9"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "bc1433c1ee4d0284750ff85c8437f1b8df91ab3b"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v0.1.9",
"range": [
{
"fixed": "50e06d41323cdeb0612025d5a03d4d08e5eaf85b"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55246.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "186142523620066971272440801035880872374",
"length": 877
},
"id": "CVE-2026-55246-05ec7258",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/tatsh/bincookie/commit/bc1433c1ee4d0284750ff85c8437f1b8df91ab3b",
"target": {
"file": "bincookie.h",
"function": "bincookie_init_file"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"13874585884550053338218074426073001213",
"241787687622795644945937022900486757986",
"74747901263247729729104064966102901975",
"305806205354215988510633023013521004052",
"65641315820708239488826158306521202189",
"254401678618403177092977847832719522593",
"222004008384625456403329897646642771686",
"155400772768888655479475371395041053694",
"208955792621045967488302158717564869595",
"85965797594065175374283935119792417278",
"312417722556283387229993330303101063347",
"102916787599536830589865359681300249406",
"304282023808183174677288515107783895207",
"41133799922695997139976394527402373811"
],
"threshold": 0.9
},
"id": "CVE-2026-55246-e565b618",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/tatsh/bincookie/commit/bc1433c1ee4d0284750ff85c8437f1b8df91ab3b",
"target": {
"file": "bincookie.h"
}
}
]
"2026-10-28T11:10:00Z"