Vulnerability
CVE-2026-54904
concurrent-ruby is a modern concurrency tools for Ruby. Prior to 1.3.7, Concurrent::AtomicReference#update can enter a permanent busy retry loop when the current value is Float::NAN. The issue is caused by the interaction between AtomicReference#update, which retries until compare_and_set(old_value, new_value) succeeds; Numeric compare_and_set, which checks old == old_value before attempting the underlying atomic swap.; and Ruby NaN semantics, where Float::NAN == Float::NAN is always false. As a result, once an AtomicReference contains Float::NAN, calling #update repeatedly evaluates the caller's block and never returns. In services that store externally derived numeric values in an AtomicReference, this can cause CPU exhaustion or permanent request/job hangs. This vulnerability is fixed in 1.3.7.
152 advisories report this vulnerability, across 8 ecosystems.
Advisories in Wolfi
- CGA-2w8r-8gg6-jm58
- CGA-366c-cg6q-3549
- CGA-3fr2-34x2-rgpq
- CGA-4qcq-2vg4-fhg6
- CGA-4x87-7cjh-rggm
- CGA-55jm-fcrq-gmx7
- CGA-5cg3-7gxq-8pqh
- CGA-5x7h-vx8m-5mw6
- CGA-5xmf-x3v6-c4v6
- CGA-79r3-frcx-7hpq
- CGA-7qjj-3956-4pcg
- CGA-fgg8-g6f2-8rv3
- CGA-gg74-vxw5-mmm6
- CGA-h4xq-827q-3hfj
- CGA-hwjc-w997-hwwc
- CGA-m2f2-4gxf-mvw8
- CGA-m8qj-8gjq-6gq2
- CGA-p7ff-q6qp-67q7
- CGA-p9qc-cvpp-rx35
- CGA-qgw3-6cxm-v7gp
- CGA-qq34-pgg9-5prg
- CGA-r8mm-8hj9-r43j
- CGA-rhf5-79x7-r84c
- CGA-rvmv-4mf2-x9h2
- CGA-v8hg-5w3r-mmgh
- CGA-vw2g-rjc5-66hh
- CGA-wwfr-68mp-vvjq
References
- https://github.com/ruby-concurrency/concurrent-ruby/commit/6e37e0644b83b182971dc540d2e4bee38df61386
- https://github.com/ruby-concurrency/concurrent-ruby/releases/tag/v1.3.7
- https://github.com/ruby-concurrency/concurrent-ruby/security/advisories/GHSA-h8w8-99g7-qmvj
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/concurrent-ruby/CVE-2026-54904.yml