Skip to main content

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

0
High
Published: 10/10/2026 (10/10/2026, 12:30:25 UTC)
Source: GCVE Database

Description

An out-of-bounds read vulnerability exists in the compact Theta sketch deserialization functionality of Apache DataSketches C++ between versions 3.1.0 and before 5.3.0. The issue arises because header fields are read before verifying input length, and in the compressed format, a 32-bit overflow can bypass size checks. This can lead to reading past the end of input, potentially causing crashes or exposure of adjacent memory. Only applications deserializing Theta sketches from untrusted sources are affected. Upgrading to version 5.3.0 resolves the issue.

Affected software

GitHub Actionsmore threats →ai
apache/datasketches-cpp
pkg:github/apache/datasketches-cpp
Affected versions
>=3.1.0 <5.3.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/10/2026, 21:30:08 UTC

Technical Analysis

The vulnerability in Apache DataSketches C++ affects the deserialization of compact Theta sketches. Specifically, the functions compact_theta_sketch::deserialize() and wrapped_compact_theta_sketch::wrap() read header fields without sufficient input length validation. For compressed sketches, a 32-bit overflow can defeat size checks, and two critical header fields controlling decoding are not validated. This flaw allows crafted or truncated sketches to cause out-of-bounds reads, which can be large in the compressed case and may incorporate unintended bytes into the deserialized sketch. The impact includes potential application crashes (denial of service) and possible exposure of adjacent memory contents. The issue affects versions from 3.1.0 up to but not including 5.3.0. The vulnerability only impacts applications that deserialize Theta sketches from untrusted sources. The vendor recommends upgrading to version 5.3.0 to fix this vulnerability.

Potential Impact

Exploitation of this vulnerability can cause application crashes resulting in denial of service. Additionally, it may expose adjacent memory contents, potentially leaking sensitive information. The risk is limited to applications that deserialize Theta sketches from untrusted or malicious sources.

Mitigation Recommendations

Users should upgrade Apache DataSketches C++ to version 5.3.0 or later, where this vulnerability has been fixed. There are no vendor advisories indicating alternative mitigations or that no action is required. Until upgrading, avoid deserializing Theta sketches from untrusted sources.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-hh2m-8j82-33gp
Osv Schema Version
1.4.0
Aliases
["CVE-2026-103635"]
State
PUBLISHED

Threat ID: 6acaad832cdf04f6565142c4

Added to database: 10/10/2026, 21:26:27 UTC

Last enriched: 10/10/2026, 21:30:08 UTC

Last updated: 10/11/2026, 04:48:07 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses