Live threats

All CVEs / Apache Software Foundation

CVE-2026-103513Apache Software Foundation Apache DataSketches

Out-of-bounds read and write in CPC sketch deserialization in Apache DataSketch…

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
Oct 10, 2026
Updated
Oct 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-125, CWE-787
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Apache DataSketches C++ versions 2.0.0-incubating through 5.2.x contain out-of-bounds read and write vulnerabilities in CPC sketch deserialization. An attacker can send a malformed serialized CPC sketch that causes reads past the end of compressed data and writes outside internal heap buffers, corrupting heap memory and potentially causing crashes or code execution.

Show the original NVD text

Out-of-bounds read and write in the CPC sketch deserialization of Apache DataSketches C++ (repo: datasketches-cpp). A crafted serialized CPC sketch passed to cpc_sketch::deserialize(), from either a byte buffer or a stream, can cause the decompressor to read past the end of the compressed data, because the read position was only checked after decoding finished. In the hybrid flavor, it can also cause a write outside an internal heap buffer, because decoded row indices were not validated. Several other header fields and decoded values, including lg_k, were also not validated. This can corrupt heap memory, causing a crash and potentially enabling further exploitation. This issue affects Apache DataSketches C++: from 2.0.0-incubating before 5.3.0. Only applications that deserialize CPC sketches from untrusted sources are affected. Users are recommended to upgrade to version 5.3.0, which fixes this issue.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 5.3.0

Upgrade Apache DataSketches C++ to version 5.3.0 or later. If you cannot upgrade, avoid deserializing CPC sketches from untrusted sources.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Apache DataSketches.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.