CVE-2026-55246 Details
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.
A heap buffer overflow vulnerability has been identified in the Bincookie library, specifically in versions prior to 0.1.9. The issue arises in the `bincookie_init_file()` function, which allocates a buffer based on the actual length of a .binarycookies file. However, it improperly trusts the file-controlled `num_pages` field without validation, leading to out-of-bounds reads and writes on the heap. This vulnerability can be exploited by crafting a malicious .binarycookies file, causing applications that parse such files to crash or suffer heap corruption, potentially leading to arbitrary code execution.
Users are advised to update to Bincookie version 0.1.9 or later, where this vulnerability has been fixed. The patched version includes validation of the `num_pages` field and other file-derived counts and offsets, ensuring they do not exceed the actual bytes read from the file before they are used.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 15, 2026CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Tatsh/bincookie/security/advisories/GHSA-22pc-xxw4-q849 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/Tatsh/bincookie/commit/bc1433c1ee4d0284750ff85c8437f1b8df91ab3b | [email protected] | Source CodeVendor |
| https://github.com/Tatsh/bincookie/releases/tag/v0.1.9 | [email protected] | Release NotesVendor |
| https://github.com/Tatsh/bincookie/security/advisories/GHSA-22pc-xxw4-q849 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Tatsh bincookie | <= 0.1.8 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Oct 15, 2026 | New CVE Received | [email protected] |
Volerion