Description
Out-of-bounds read in the compact Theta sketch deserialization of Apache DataSketches C++ (repo: datasketches-cpp).

compact_theta_sketch::deserialize() and wrapped_compact_theta_sketch::wrap() read header fields before checking that the input was long enough. For the compressed format, the size check could be defeated by a 32-bit overflow, and two header fields that control decoding were not validated; this also affected deserialization from a stream. A crafted or truncated sketch could cause a read past the end of the input. In the compressed case the over-read can be large, and the bytes read can become part of the deserialized sketch. This can cause a crash (denial of service) and could expose adjacent memory contents.

This issue affects Apache DataSketches C++: from 3.1.0 before 5.3.0. Only applications that deserialize Theta sketches from untrusted sources are affected.

Users are recommended to upgrade to version 5.3.0, which fixes this issue.
Published: 2026-10-10
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Patch Now
AI Analysis

Impact

An out‑of‑bounds read occurs when Apache DataSketches C++ deserializes a compact Theta sketch. The deserialization routine reads header fields without first ensuring that the input buffer is sufficiently long, and when the format is compressed a 32‑bit integer overflow can bypass the size check. In addition two header fields that control decoding are not validated. If a malicious or truncated sketch is deserialized, the read can exceed the input bounds and may acquire data from adjacent memory. The resulting over‑read can crash the process (denial of service) and could expose contents of memory that belong to other parts of the application.

Affected Systems

Apache DataSketches C++ is affected from version 3.1.0 through 5.2.x. Any application that deserializes Theta sketches from untrusted or remote sources running those versions is vulnerable.

Risk and Exploitability

The CVSS score is 9.1, indicating a high risk level; the EPSS score remains low (<1%), so the overall likelihood of exploitation in the wild is limited. The vulnerability is not listed in CISA’s KEV catalog. A likely attack scenario involves an attacker crafting a malformed compact Theta sketch and sending it to a system that performs deserialization. If the system accepts the sketch from an external or untrusted channel, the vulnerability can be triggered to cause a crash and, in some cases, read adjacent memory. This affects availability and could expose sensitive data if the memory contents are significant. Appropriate mitigation is required to prevent attackers from providing such input.

Generated by OpenCVE AI on October 17, 2026 at 08:16 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache DataSketches C++ to version 5.3.0 or later
  • Implement strict validation of the sketch size and header fields before calling the deserialization routine
  • Restrict deserialization to trusted input sources or perform it in a sandboxed environment to contain potential crashes

Generated by OpenCVE AI on October 17, 2026 at 08:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 16 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H'}


Sun, 11 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache datasketches
Vendors & Products Apache
Apache datasketches

Sat, 10 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
References

Sat, 10 Oct 2026 10:45:00 +0000

Type Values Removed Values Added
Description Out-of-bounds read in the compact Theta sketch deserialization of Apache DataSketches C++ (repo: datasketches-cpp). compact_theta_sketch::deserialize() and wrapped_compact_theta_sketch::wrap() read header fields before checking that the input was long enough. For the compressed format, the size check could be defeated by a 32-bit overflow, and two header fields that control decoding were not validated; this also affected deserialization from a stream. A crafted or truncated sketch could cause a read past the end of the input. In the compressed case the over-read can be large, and the bytes read can become part of the deserialized sketch. This can cause a crash (denial of service) and could expose adjacent memory contents. This issue affects Apache DataSketches C++: from 3.1.0 before 5.3.0. Only applications that deserialize Theta sketches from untrusted sources are affected. Users are recommended to upgrade to version 5.3.0, which fixes this issue.
Title Apache DataSketches: datasketches-cpp: Out-of-bounds read in compact Theta sketch deserialization allows denial of service via a crafted sketch
Weaknesses CWE-125
CWE-190
References

Subscriptions

Apache Datasketches
cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-16T15:28:02.277Z

Reserved: 2026-09-30T23:50:17.136Z

Link: CVE-2026-103635

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-10-10T11:17:35.963

Modified: 2026-10-16T16:16:53.760

Link: CVE-2026-103635

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T08:30:05Z

Weaknesses