{"id":"CVE-2026-123274","summary":"Apache DataSketches C++: Out-of-bounds write in KLL sketch deserialization allows memory corruption via a crafted sketch","details":"Out-of-bounds Write vulnerability in Apache DataSketches C++. An\n  application that deserializes a KLL sketch from an untrusted source\n  can have heap memory corrupted by a crafted sketch, because the\n  serialized level boundaries were not validated.\n\n  This issue affects Apache DataSketches C++: 2.0.0 through 5.3.0.\n\n  Users are recommended to upgrade to version 5.3.1, which fixes the\n  issue.","modified":"2026-11-15T07:10:35.333422275Z","published":"2026-11-13T10:34:29.123Z","database_specific":{"cna_assigner":"apache","cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123274.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/11/13/1"},{"type":"WEB","url":"https://github.com"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123274.json"},{"type":"ADVISORY","url":"https://github.com/apache/datasketches-cpp/releases/tag/5.3.1"},{"type":"ADVISORY","url":"https://lists.apache.org/thread/t4rngyg9cbv1b42f1d0crgpgtpby0594"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123274"},{"type":"FIX","url":"https://github.com/apache/datasketches-cpp/commit/bb86d439db494e3d362e54cc4f83481893974335"},{"type":"FIX","url":"https://github.com/apache/datasketches-cpp/pull/568"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/apache/datasketches-cpp","events":[{"introduced":"fa481e2c0b8dd2e3d6a389338168b930e3e6698d"},{"fixed":"4827417fa82091915f490c8ef97c7692dcc9b1b8"},{"fixed":"bb86d439db494e3d362e54cc4f83481893974335"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"1.0.0-incubating"},{"last_affected":"5.3.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"4827417fa82091915f490c8ef97c7692dcc9b1b8"}],"source":"REFERENCES_TAG","original_tag":"5.3.1"},{"range":[{"fixed":"bb86d439db494e3d362e54cc4f83481893974335"}],"source":"REFERENCES_COMMIT"}]}}],"database_specific":{"vanir_signatures_modified":"2026-11-15T07:10:35Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-123274.json","vanir_signatures":[{"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":["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"},{"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"}},{"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":{"function_hash":"152225204753493879729542440767031116881","length":2494},"id":"CVE-2026-123274-39f85a7d","signature_type":"Function"},{"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"}},{"id":"CVE-2026-123274-be71bc12","signature_type":"Function","signature_version":"v1","source":"https://github.com/apache/datasketches-cpp/commit/bb86d439db494e3d362e54cc4f83481893974335","target":{"function":"deserialize","file":"kll/include/kll_sketch_impl.hpp"},"deprecated":false,"digest":{"function_hash":"152180606963080255530076304882230583383","length":2748}}]}}],"schema_version":"1.9.2"}