CVE-2026-55246
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by GitHub_M
Exploit likelihood
0.19% (higher than 5% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Tatsh bincookie< 0.1.9CVE List

Classification

CWE-122CWE-787

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-55246 changed 2026-10-15CVE Terms of Use
NVDCVE-2026-55246 changed 2026-10-16Public domain