CVE-2026-123338

Source
https://cve.org/CVERecord?id=CVE-2026-123338
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-123338.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-123338
Published
2026-11-13T10:32:43Z
Modified
2026-11-15T07:10:41Z
Summary
Apache DataSketches C++: Out-of-bounds write in REQ sketch deserialization allows memory corruption via a crafted sketch
Details

Out-of-bounds Write vulnerability in Apache DataSketches C++. An application that deserializes a REQ sketch from an untrusted source can have heap memory corrupted by a crafted sketch, because the serialized compactor headers were not validated.

This issue affects Apache DataSketches C++: from 3.0.0 through 5.3.0.

Users are recommended to upgrade to version 5.3.1, which fixes the issue.

Database specific
{
    "cna_assigner": "apache",
    "cwe_ids": [
        "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123338.json"
}
References

Affected packages

Git / github.com/apache/datasketches-cpp

Affected ranges

Type
GIT
Repo
https://github.com/apache/datasketches-cpp
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "3.0.0"
                },
                {
                    "last_affected": "5.3.0"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
        },
        {
            "original_tag": "5.3.1",
            "range": [
                {
                    "fixed": "4827417fa82091915f490c8ef97c7692dcc9b1b8"
                }
            ],
            "source": "REFERENCES_TAG"
        },
        {
            "range": [
                {
                    "fixed": "9839ffd2ccc038d453e38b545750a5ed2d589dea"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-123338.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "229646721802600326294391539487974467547",
                "243869994868225255452379910473389580188",
                "144181444520261564996864609328553300171",
                "284096919784675092674656298278625378924"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-123338-05a8a41b",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/apache/datasketches-cpp/commit/9839ffd2ccc038d453e38b545750a5ed2d589dea",
        "target": {
            "file": "req/include/req_sketch.hpp"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "65799176205678376803983409446752008816",
                "178898442483033672171404152163459560023",
                "12342923846933689364886365748393330617",
                "14489849985399252150886506737445817357",
                "339003008345859594739055028088406312391",
                "245371938503716612512094405393922779722",
                "174516932061940148800514697913208563674",
                "129176226257444340599130823481953867429",
                "223133017047928929552304865969269616643",
                "193246878418947792321115311740421983615",
                "155318192792564899774468863350174817175"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-123338-098000c7",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/apache/datasketches-cpp/commit/9839ffd2ccc038d453e38b545750a5ed2d589dea",
        "target": {
            "file": "req/include/req_compactor.hpp"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "148123121804872019453623298652333400831",
            "length": 815
        },
        "id": "CVE-2026-123338-0ebad03a",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/apache/datasketches-cpp/commit/9839ffd2ccc038d453e38b545750a5ed2d589dea",
        "target": {
            "file": "req/include/req_compactor_impl.hpp",
            "function": "deserialize"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "194876465966456966545647571053818781512",
                "323670196788025753580114315703941246801",
                "66838397431614742764974245926205447713",
                "178073804964244017384452440301773886761",
                "269675245696174439158405616886713115648",
                "300243861244948644543998037606584791368",
                "250515667066085053442247130838092342997",
                "252693118906899876510183168880329782068",
                "172698643139036606631475729432556051794",
                "244859847610454344859524269466959074259",
                "325960905107605526291794068490007349824",
                "236496171390959515297739212802779887715",
                "322557614307396391170751300390963302433",
                "229888127682552015278133384156925995014",
                "147845898144809116102575486300945606499",
                "146557078151926335269944105604438880514",
                "108068877545509008102311698544650395345",
                "38009991598583071567943033955639906104",
                "297611877258294317272140120278082068125",
                "150372458828306454778086769869079135700",
                "281227493007310671247247711303406417203",
                "308976070963415454021421873870328107011"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-123338-1bc5b904",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/apache/datasketches-cpp/commit/9839ffd2ccc038d453e38b545750a5ed2d589dea",
        "target": {
            "file": "req/include/req_compactor_impl.hpp"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "102938502191606203991601170489062139034",
            "length": 2382
        },
        "id": "CVE-2026-123338-24f58a31",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/apache/datasketches-cpp/commit/9839ffd2ccc038d453e38b545750a5ed2d589dea",
        "target": {
            "file": "req/include/req_sketch_impl.hpp",
            "function": "deserialize"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "132708486401080054047745705273383683033",
            "length": 589
        },
        "id": "CVE-2026-123338-4d9b3245",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/apache/datasketches-cpp/commit/9839ffd2ccc038d453e38b545750a5ed2d589dea",
        "target": {
            "file": "req/include/req_compactor_impl.hpp",
            "function": "deserialize"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "331341946917477388038540785787036031800",
            "length": 2190
        },
        "id": "CVE-2026-123338-815d7f57",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/apache/datasketches-cpp/commit/9839ffd2ccc038d453e38b545750a5ed2d589dea",
        "target": {
            "file": "req/include/req_sketch_impl.hpp",
            "function": "deserialize"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "96797759930462884041707818129268342549",
                "339375141923525476298903276720563220845",
                "159993987332190287625803359325230275929",
                "251715378003875814527637558065778454052",
                "143225391448475979402466243282704262688",
                "48316038474475058343534396017772962178",
                "289776354018461873910441830139570111618",
                "55982153155253292188108033219311573522",
                "338140465486286839790578401390592138398",
                "213386399347086508429401133433231766753",
                "289921520781665745886540903220536599123",
                "167964552654938055093075084965270569733",
                "268548181464540282733516171057889897683",
                "148255893681958941458096419759867362339",
                "97568875911321297787977743395914701097",
                "91042244285186245193266992875299549512",
                "17013965391505998281837799952184253466",
                "251715378003875814527637558065778454052",
                "143225391448475979402466243282704262688",
                "48316038474475058343534396017772962178",
                "289776354018461873910441830139570111618",
                "236379944479574155042971412786440732515",
                "170109628189307839822957252669685210046",
                "176117276549033725950053432029052092441",
                "331716377311519804208599484787824429610",
                "259212531098022732472206556006817313379",
                "277164985701725219261108723077908618816",
                "167964552654938055093075084965270569733",
                "268548181464540282733516171057889897683",
                "148255893681958941458096419759867362339",
                "66996110757514969093130084342404204872",
                "160958704175205546673840300861169278636",
                "96132996571871289903237248004456061510"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-123338-93f836d4",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/apache/datasketches-cpp/commit/9839ffd2ccc038d453e38b545750a5ed2d589dea",
        "target": {
            "file": "req/include/req_sketch_impl.hpp"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "91154750802287537710659724873922236402",
                "15697882898909538276495475315855882736",
                "101546336414337103763591708970154198273",
                "48565526658970933929052976468880270555",
                "330585009729606186872709958802024487027"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-123338-c848a78f",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/apache/datasketches-cpp/commit/9839ffd2ccc038d453e38b545750a5ed2d589dea",
        "target": {
            "file": "req/test/req_sketch_test.cpp"
        }
    }
]
vanir_signatures_modified
"2026-11-15T07:10:41Z"