Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify network-accessible t-digest deserialization endpoint
-
Deliverycraft MergingDigest binary payload with NaN centroid means
-
Exploitsubmit payload via API or file upload
-
InstallMergingDigest.fromBytes() skips NaN validation
-
C2NaN corrupts centroid sort-order invariant
-
ExecuteSort.mergingDigest() degrades to O(n²)
-
ImpactCPU exhaustion causes application-level DoS
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
|
| Exploitation Conditions | The target application must call MergingDigest.fromBytes() on byte data that is fully or partially controlled by an untrusted party - this requires either a network endpoint accepting raw t-digest byte streams, a file-upload or message-queue path that processes t-digest-formatted payloads, or an inter-service channel where attacker-injected data reaches the deserializer. t-digest versions 3.1 through 3.3 must be on the classpath. The CVSS PR:N/AC:L scenario applies only when the deserialization entry point requires no authentication; deployments behind authentication, payload signing, or size restrictions materially limit exploitability. Applications that only ever serialize internally generated digests and never deserialize externally provided byte streams are not exposed to this vulnerability. |
| Impact | The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N/VA:H) represents worst-case exposure assuming a network-accessible, unauthenticated deserialization endpoint. EPSS data is absent from available input. No CISA KEV listing and no confirmed public exploit code exist, placing real-world exploitation probability below the raw score suggests, but the attack primitive is simple - NaN injection requires no memory corruption expertise. The primary risk gate is deployment context: applications that never accept externally sourced t-digest byte streams are not exposed regardless of library version; even a mid-sized analytics team in sanok running a data pipeline that deserializes t-digest payloads from an authenticated internal service faces substantially lower risk than a public-facing API accepting raw digest blobs. CVSS AC:L and PR:N assume the most permissive deployment; configurations behind authentication or with input size limits significantly constrain exploitability, and the O(n²) degradation requires a payload large enough to produce meaningful CPU saturation. |
| Exploit ScenarioDerived | An attacker identifies a network API endpoint that accepts raw t-digest binary payloads and internally calls MergingDigest.fromBytes() on the submitted data. The attacker crafts a large serialized digest in which centroid means are set to NaN, then submits it repeatedly or with sufficient centroid count to trigger O(n²) sort behavior. Each request consumes disproportionate server CPU during the merge phase, exhausting processing capacity and causing legitimate requests to timeout or queue indefinitely. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Deserialization in t-digest 3.1 through 3.3 allows remote attackers to inject IEEE 754 NaN values as centroid means via crafted byte streams passed to MergingDigest.fromBytes(), bypassing absent validation checks. The injected NaN values corrupt the internal total-ordering invariant of the centroid list, causing sort comparisons to return inconsistent results and degrading subsequent merge operations from O(n log n) to O(n²) algorithmic complexity. The result is severe CPU exhaustion and service delays for any application that deserializes attacker-controlled t-digest payloads; no public exploit code or CISA KEV listing exists at time of analysis.
RemediationAI
A fix has been committed to the t-digest main branch at commit 8d5c1523c3d46925e9b3979a8d63c0b9d004ed1c, patching both MergingDigest.java and Sort.java; however, a specific patched release version number is not confirmed from available input data, and users should check the GitHub releases page (https://github.com/tdunning/t-digest) for a tagged release beyond 3.3 or build from the fixed commit directly. As an immediate compensating control, applications should validate that all centroid mean values in externally sourced byte streams are finite using Double.isFinite() before invoking MergingDigest.fromBytes(), rejecting payloads containing NaN or Infinite values. Where feasible, restrict deserialization of t-digest byte streams to cryptographically signed or internally generated payloads, eliminating untrusted input as an attack surface entirely. Gating the deserialization path behind authentication or applying request rate limiting reduces the impact of repeated O(n²) payload submissions. Refer to GitHub issue #229 (https://github.com/tdunning/t-digest/issues/229) for additional remediation context.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
t-digest (CPE: cpe:2.3:a:tdunning:t-digest) is an open-source Java streaming-quantile estimation library authored by Ted Dunning (GitHub: tdunning/t-digest). It maintains a compressed set of weighted centroids sorted by mean value, enabling approximate percentile computation over large data streams. The MergingDigest implementation exposes a static fromBytes() factory method that reconstructs a live digest object from a compact binary encoding. CWE-407 (Inefficient Algorithmic Complexity) identifies the root cause: the deserializer performs no IEEE 754 validity check on incoming centroid mean values. Because Java's Double.compare() produces undefined behavior when either operand is NaN - violating the reflexive, transitive, and total-order contract that sort partitioning depends on - injection of a single NaN centroid is sufficient to collapse Sort.mergingDigest() into worst-case O(n²) execution. The vulnerability surfaces in core/src/main/java/com/tdunning/math/stats/MergingDigest.java and the associated Sort.java comparator, as identified in GitHub issue #229 and fixed in commit 8d5c1523c3d46925e9b3979a8d63c0b9d004ed1c.
Know when T Digest gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Network-reachable deserialization with no authentication in worst-case deployment; exclusively availability impact via O(n²) CPU exhaustion with no confidentiality or integrity breach.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
t-digest versions 3.1 through 3.3 fail to validate centroid means during deserialization in MergingDigest.fromBytes, allowing attackers to inject NaN values that bypass validation checks. Attackers can craft malicious serialized digests containing NaN centroids that degrade sorting performance from O(n log n) to O(n squared), causing severe processing delays during merge operations.
Executive ViewAI
t-digest, a library used for streaming data analytics and percentile calculations, versions 3.1-3.3 has a vulnerability allowing remote attackers to crash or hang services by sending malicious data payloads. The vulnerability degrades computational efficiency, consuming all CPU resources and rendering dependent applications unresponsive. Organizations relying on t-digest for real-time analytics, reporting dashboards, or distributed monitoring systems should prioritize immediate mitigation.
No vendor-released patch identified at time of analysis. Interim mitigations include: (1) Disable deserialization of t-digest data from untrusted or external sources entirely; (2) Implement pre-deserialization validation to detect and reject payloads with NaN values in centroid means; (3) Enforce strict timeout controls on merge operations (suggest 5-second maximum); (4) Deploy rate limiting on deserialization request endpoints; (5) Use network segmentation to restrict access to t-digest processing services to authorized internal systems only; (6) Monitor merge operation duration and CPU utilization for unexplained increases.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-75020
GHSA-32f6-mgwr-pvc4
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB