Skip to main content

CVE-2026-103636: CWE-125 Out-of-bounds read in Apache Software Foundation Apache DataSketches

0
High
VulnerabilityCVE-2026-103636cvecve-2026-103636cwe-125cwe-191
Published: 10/10/2026 (10/10/2026, 10:23:58 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache DataSketches

Description

An out-of-bounds read vulnerability exists in Apache DataSketches C++ in the VarOpt union deserialization function. The flaw occurs when deserializing a truncated serialized union, causing reads beyond the input buffer and potential exposure of adjacent memory. This can lead to application crashes (denial of service) and possible information disclosure. The issue affects versions from 2.0.0-incubating up to and including 5.2.0. The vulnerability is fixed in version 5.3.0. Only applications deserializing VarOpt unions from untrusted sources are at risk.

Affected software

Apache Software Foundation

Apache DataSketches

Affected versions
>=2.0.0-incubating <=5.2.0
GitHub Actionsmore threats →cve
apache/datasketches-cpp
pkg:github/apache/datasketches-cpp
Affected versions
>=2.0.0-incubating <=5.2.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, 10:48:14 UTC

Technical Analysis

CVE-2026-103636 is an out-of-bounds read vulnerability in the Apache DataSketches C++ library's VarOpt union deserialization method. The function var_opt_union::deserialize() incorrectly reads a 32-byte preamble after verifying only 8 bytes are available, allowing reads up to 24 bytes past the input end if the serialized union is truncated. Additionally, an unsigned subtraction used to compute the embedded sketch size can wrap around, bypassing size checks and enabling further out-of-bounds reads. These reads can corrupt the deserialized union's state, cause crashes, and potentially expose adjacent memory contents. The vulnerability affects versions >=2.0.0-incubating and <=5.2.0 and is resolved in version 5.3.0.

Potential Impact

Exploitation of this vulnerability can cause application crashes resulting in denial of service. It may also lead to exposure of adjacent memory contents, which could include sensitive information. The impact is limited to applications that deserialize VarOpt unions from untrusted sources. There are no known exploits in the wild at this time.

Mitigation Recommendations

Users should upgrade Apache DataSketches C++ to version 5.3.0 or later, where this vulnerability is fixed. Only applications that deserialize VarOpt unions from untrusted sources are affected, so restricting input sources can also reduce risk. Patch status is confirmed fixed in version 5.3.0.

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

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-09-30T23:57:54.605Z
State
PUBLISHED

Threat ID: 6aca148f2cdf04f65621aabc

Added to database: 10/10/2026, 10:33:51 UTC

Last enriched: 10/10/2026, 10:48:14 UTC

Last updated: 10/10/2026, 10:49:05 UTC

Views: 6

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