CVE-2026-122096

Apache DataSketches Java: Uncontrolled resource consumption when deserializing crafted sketch images

Published Nov 11, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Uncontrolled Resource Consumption vulnerability in the sketch deserialization of Apache DataSketches Java.



Several deserializers trusted sizes and counts declared in the serialized input. A small crafted input could make an application allocate an excessive amount of memory, leading to an OutOfMemoryError. A crafted string passed to FrequentLongsSketch.getInstance(String) could also make deserialization, or a later update, loop indefinitely. Only applications that deserialize sketches from untrusted sources are affected.



This issue affects Apache DataSketches Java: through 9.0.0.



Users are recommended to upgrade to version 9.1.0, which fixes the issue.

Analysis

AI-generated

Technical impact

Apache DataSketches Java deserializers trust sizes and counts declared in serialized input, allowing a small crafted sketch image to trigger large memory allocation or an infinite loop during deserialization. This can cause an OutOfMemoryError or denial of service by exhausting application resources. The weakness corresponds to uncontrolled resource consumption and infinite loop conditions identified as CWE‑400, CWE‑789, and CWE‑835.

Affected Systems

The affected product is Apache DataSketches Java from the Apache Software Foundation. Versions up to and including 9.0.0 are vulnerable. Applications that deserialize sketch data from untrusted sources expose themselves to the risk.

Risk and Exploitability

Executive summary: The EPSS score indicates a very low exploitation probability (< 1%) and the vulnerability is not listed in CISA’s KEV catalog, but the potential for memory exhaustion or a denial of service remains high for systems that accept sketch images from untrusted origins. The likely attack vector is remote or local code that can supply a crafted sketch string, such as custom API calls or file uploads, after which the deserializer will allocate excessive memory or loop indefinitely. Because the issue arises from trusting embedded sizes, the vulnerability is exploitable without privileged access, making it a significant risk for exposed services. The CVSS score of 7.5 highlights the high severity of this resource consumption flaw.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache DataSketches Java to version 9.1.0 or later, as this release addresses the deserialization resource consumption flaw.
  • Validate any incoming sketch data from external sources by checking its size and complexity before calling FrequentLongsSketch.getInstance(String); reject data that exceeds reasonable limits.
  • Cease deserialization of sketch data from untrusted inputs; if necessary, implement a secure wrapper that limits memory allocation and timeouts during deserialization to mitigate potential denial of service.

Generated by OpenCVE AI on November 17, 2026 at 17:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
First Time appeared Apache Software Foundation
Apache Software Foundation apache Datasketches Java
Vendors & Products Apache Software Foundation
Apache Software Foundation apache Datasketches Java
Type Values Removed Values Added
Description Uncontrolled Resource Consumption vulnerability in the sketch deserialization of Apache DataSketches Java. Several deserializers trusted sizes and counts declared in the serialized input. A small crafted input could make an application allocate an excessive amount of memory, leading to an OutOfMemoryError. A crafted string passed to FrequentLongsSketch.getInstance(String) could also make deserialization, or a later update, loop indefinitely. Only applications that deserialize sketches from untrusted sources are affected. This issue affects Apache DataSketches Java: through 9.0.0. Users are recommended to upgrade to version 9.1.0, which fixes the issue.
Title Apache DataSketches Java: Uncontrolled resource consumption when deserializing crafted sketch images
Weaknesses CWE-400
CWE-789
CWE-835
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-789

    Memory Allocation with Excessive Size Value

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 17, 2026, 3:08 PM
Reserved
Nov 4, 2026, 5:30 PM
Status
Deferred
Published
Nov 11, 2026, 1:17 PM
Modified
Nov 17, 2026, 4:17 PM