CVE-2026-123274: out-of-bounds write in KLL sketch deserialization in Apache DataSketches C++
Advisory published on November 12 on the Apache DataSketches C++ versions 2.0.0-incubating through 5.3.0: a malicious KLL sketch can corrupt heap memory during deserialization.
WRP Consultoria e Informática · Updated18 days ago
Source: CVE-2026-123274: Apache DataSketches C++ — gravação fora dos limites na desserialização de sketch KLL causa corrupção de memória (seclists.org). Text prepared with AI from this source.
What happened and what to do
The oss-sec advisory, published by Lee Rhodes on November 12, rates CVE-2026-123274 in Apache DataSketches C++, versions 2.0.0-incubating through 5.3.0, as moderate. The flaw is an out-of-bounds write: an application that deserializes a KLL sketch from an untrusted source can have its heap memory corrupted by a sketch crafted for that purpose, because the serialized level boundaries are not validated.
In practice, any service that receives sketches from customers, partners or external files and rebuilds them with this library is exposed. A possible action is to inventory which systems use DataSketches C++ and in which versions, identify the entry points where untrusted sketches are deserialized, and update or isolate those applications. Until the fix is applied, input can be validated before deserialization with size and structure limits, and the process can run with minimal privileges in separate containers, reducing the impact of memory corruption.
How the consultancy can help
Exposure diagnosis: survey of the applications that use Apache DataSketches C++ in the affected versions and of the points where external sketches are deserialized. Then a mitigation plan with input validation, process isolation and updating, implemented and monitored in the client's environment.
Next step
If your company uses Apache DataSketches C++ and receives serialized data from external sources, send a short description of your case and receive a scoped proposal for the diagnosis and the fix.
Need to assess technical exposure or run continuous monitoring?
Start with an evidence-backed audit of your domains, headers, email authentication, or AI tooling and move into SLA-backed managed operations.