Skip to main content

CVE-2026-103634: CWE-787 Out-of-bounds write in Apache Software Foundation Apache DataSketches

0
High
VulnerabilityCVE-2026-103634cvecve-2026-103634cwe-787cwe-190
Published: 10/22/2026 (10/22/2026, 06:42:20 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache DataSketches

Description

Out-of-bounds read and write in the Count-Min sketch deserialization of Apache DataSketches C++ (repo: datasketches-cpp). count_min_sketch::deserialize() did not include the preamble in its input size check, so a truncated sketch could cause a read of up to 16 bytes past the end of the input. In addition, the table size was computed from the serialized number of buckets and number of hash functions in 32-bit arithmetic. A crafted sketch could make it wrap to zero, so that the sketch deserialized with an empty table, and later updates and estimate queries read and wrote outside the heap allocation. This can corrupt heap memory, causing a crash and potentially enabling further exploitation. This issue affects Apache DataSketches C++: from 4.1.0 before 5.3.0. Only applications that deserialize Count-Min sketches from untrusted sources are affected. Users are recommended to upgrade to version 5.3.0, which fixes this issue.

Affected software

Apache Software Foundation

Apache DataSketches

Affected versions
>=4.1.0 <=5.2.0
GitHub Actionsmore threats →cve
apache/datasketches-cpp
pkg:github/apache/datasketches-cpp
Affected versions
>=4.1.0 <=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/22/2026, 07:16:05 UTC

Technical Analysis

CVE-2026-103634 describes a vulnerability in Apache DataSketches C++ Count-Min sketch deserialization where the function count_min_sketch::deserialize() fails to include the preamble in its input size check, allowing reads up to 16 bytes beyond the input buffer if the sketch is truncated. Furthermore, the table size is computed using 32-bit arithmetic from serialized parameters, which can overflow to zero if crafted maliciously. This results in an empty table being deserialized, causing subsequent updates and estimate queries to perform out-of-bounds heap reads and writes. This heap corruption can lead to application crashes and may be exploitable for further attacks. The vulnerability affects versions from 4.1.0 up to and including 5.2.0 and is resolved in version 5.3.0.

Potential Impact

Heap memory corruption caused by out-of-bounds read and write during deserialization of maliciously crafted Count-Min sketches can lead to application crashes and potentially enable further exploitation. The impact is limited to applications that deserialize Count-Min sketches from untrusted sources.

Mitigation Recommendations

Users should upgrade Apache DataSketches C++ to version 5.3.0 or later, where this vulnerability is fixed. Avoid deserializing Count-Min sketches from untrusted or unauthenticated sources until the upgrade is applied.

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:36:49.873Z
State
PUBLISHED

Threat ID: 6ad9b4b24d27ba8daa366499

Added to database: 10/22/2026, 07:01:06 UTC

Last enriched: 10/22/2026, 07:16:05 UTC

Last updated: 10/22/2026, 21:15:13 UTC

Views: 10

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