Out-of-bounds Write vulnerability in Apache DataSketches C++. An application that deserializes a KLL sketch from an untrusted source can have heap memory corrupted by a crafted sketch, because the serialized level boundaries were not validated.
This issue affects Apache DataSketches C++: 2.0.0 through 5.3.0.
Users are recommended to upgrade to version 5.3.1, which fixes the issue.
{
"cna_assigner": "apache",
"cwe_ids": [
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123274.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "1.0.0-incubating"
},
{
"last_affected": "5.3.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"original_tag": "5.3.1",
"range": [
{
"fixed": "4827417fa82091915f490c8ef97c7692dcc9b1b8"
}
],
"source": "REFERENCES_TAG"
},
{
"range": [
{
"fixed": "bb86d439db494e3d362e54cc4f83481893974335"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-123274.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"328446905906792758964484476330694436657",
"290698072424721392215694280271593276671",
"102041309785239241344860283932200852038",
"3959089239846425380171544926651608359",
"236928598081089785417078452430810391997",
"215099054399053654724019045411766461466",
"157631860321122795795538521720560793385",
"79140227496958039391687020684189630819",
"198153190084641908033720344607728560965",
"332761574235198572480243884964106524231",
"8431011589955379259474694211871350394",
"326638413934289761214767950156886960479",
"46284349038126212945595879186013369059",
"243696606672803152382442551528417504819",
"38187460395414306945343912107105347817",
"130416353700443519529984698579799219904",
"192523077401627205006821466520789603155",
"151452862693608286183689297946997093182",
"318102595874156486192002074159750507139",
"105949254575796881283297248299372311390",
"53126738563328385339265825251250486340",
"170231840889281323417584973972899107865",
"8152491033299881623438166151212726616",
"203897055603893528719013129459040655025",
"326638413934289761214767950156886960479",
"46284349038126212945595879186013369059",
"287441888247880343109320484271314311861",
"228179630107972637632954532343610577380",
"208132606417348407468007370296793200065",
"18856521654046310108468109697215145865",
"19593123172157406376196695636793050853",
"296991487309868985052002509776180241048"
],
"threshold": 0.9
},
"id": "CVE-2026-123274-021cfdad",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/apache/datasketches-cpp/commit/bb86d439db494e3d362e54cc4f83481893974335",
"target": {
"file": "kll/include/kll_sketch_impl.hpp"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"312531319137411285281951121063905448385"
],
"threshold": 0.9
},
"id": "CVE-2026-123274-38e4d246",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/apache/datasketches-cpp/commit/bb86d439db494e3d362e54cc4f83481893974335",
"target": {
"file": "kll/test/kll_sketch_test.cpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "152225204753493879729542440767031116881",
"length": 2494
},
"id": "CVE-2026-123274-39f85a7d",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/apache/datasketches-cpp/commit/bb86d439db494e3d362e54cc4f83481893974335",
"target": {
"file": "kll/include/kll_sketch_impl.hpp",
"function": "deserialize"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"267835063227887970973503474056159196927",
"33718628591447331161515389958383331817",
"258010165592324476693307568439485989650",
"312913273457947092840684523405746991107",
"292939033556289272478750630578018228750",
"235385197605656535250293249471278829799",
"297661415735101303132881264891530771471"
],
"threshold": 0.9
},
"id": "CVE-2026-123274-43f6c9bc",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/apache/datasketches-cpp/commit/bb86d439db494e3d362e54cc4f83481893974335",
"target": {
"file": "kll/include/kll_sketch.hpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "152180606963080255530076304882230583383",
"length": 2748
},
"id": "CVE-2026-123274-be71bc12",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/apache/datasketches-cpp/commit/bb86d439db494e3d362e54cc4f83481893974335",
"target": {
"file": "kll/include/kll_sketch_impl.hpp",
"function": "deserialize"
}
}
]
"2026-11-15T07:10:35Z"