CVE-2026-55246

Source
https://cve.org/CVERecord?id=CVE-2026-55246
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55246.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-55246
Aliases
  • GHSA-22pc-xxw4-q849
Published
2026-10-15T17:06:59Z
Modified
2026-10-28T11:10:00Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
bincookie: Heap buffer overflow via unvalidated `num_pages` when parsing a `.binarycookies` file
Details

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.

Database specific
{
    "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"
}
References

Affected packages

Git / github.com/tatsh/bincookie

Affected ranges

Type
GIT
Repo
https://github.com/tatsh/bincookie
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "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"
        }
    ]
}

Affected versions

v0.*
v0.0.1
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.1.6
v0.1.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55246.json"
vanir_signatures
[
    {
        "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"
        }
    }
]
vanir_signatures_modified
"2026-10-28T11:10:00Z"