CPU exhaustion via NaN comparison retry loop
Published Jun 24, 2026 · Updated Jun 24, 2026
Denial of service in ruby-concurrency concurrent-ruby before 1.3.7 allows remote attackers to hang applications via a NaN value. Concurrent::AtomicReference#update retries until compare_and_set succeeds, but the numeric wrapper rejects NaN because Ruby equality reports NaN unequal to itself. Exposure requires an application to store externally derived numeric data in the reference; a later update spins indefinitely, consuming CPU and hanging the request or job.
Summary
What happened
Denial of service in ruby-concurrency concurrent-ruby before 1.3.7 allows remote attackers to hang applications via a NaN value. Concurrent::AtomicReference#update retries until compare_and_set succeeds, but the numeric wrapper rejects NaN because Ruby equality reports NaN unequal to itself. Exposure requires an application to store externally derived numeric data in the reference; a later update spins indefinitely, consuming CPU and hanging the request or job.
The record
- CVE
- CVE-2026-54904
- Published
- Jun 24, 2026
- Updated
- Jun 24, 2026
- Vendor
- ruby-concurrency
- Product
- concurrent-ruby
- Classifications
- CWE-835, T1499
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 24, 2026CVE publishedPublication date reported by the CVE source.
- Jun 24, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 1.3.7
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-h8w8-99g7-qmvj NaN livelock reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo