Vulnerability
CVE-2026-54905
concurrent-ruby is a modern concurrency tools for Ruby. Prior to 1.3.7, Concurrent::ReentrantReadWriteLock can incorrectly grant a write lock after one thread acquires the read lock 32,768 times. The lock stores a thread's local read and write hold counts in one integer. The low 15 bits are used for the read hold count, and bit 15 is used as WRITE_LOCK_HELD. After 32,768 reentrant read acquisitions, the local read count crosses into the write-lock bit. try_write_lock then treats the thread as already holding a write lock and returns true without setting the global RUNNING_WRITER bit. This breaks the core mutual-exclusion guarantee: the caller is told it has a write lock, but other threads can still hold or acquire read locks at the same time. This vulnerability is fixed in 1.3.7.
153 advisories report this vulnerability, across 9 ecosystems.
Advisories in Wolfi
- CGA-22q6-q64m-m7hq
- CGA-2w74-2m7f-qxpc
- CGA-3qrj-3qw8-743v
- CGA-47gg-54wm-55vj
- CGA-4cr8-fhw4-gx42
- CGA-53p8-qgv3-r478
- CGA-73j5-m3qj-42vr
- CGA-955p-3jx7-p47w
- CGA-c94r-3vr9-wq9x
- CGA-cwxv-hh5j-gm78
- CGA-fx79-g53m-fr2f
- CGA-gqgq-vw2v-xvm9
- CGA-hvrv-pr4j-h5j9
- CGA-hx99-f5cv-hgjf
- CGA-j49h-7p7v-wc92
- CGA-jrhm-6qwh-2qcw
- CGA-jxqc-5w5r-ph45
- CGA-m5rj-94mf-25vr
- CGA-m695-q5gq-327m
- CGA-mhpv-qr5g-5379
- CGA-pp3f-rwwm-9p29
- CGA-q9p5-4rfj-38q7
- CGA-qx6m-hhfw-762x
- CGA-r5jg-r2w5-j6pf
- CGA-v55c-6qj8-3mw6
- CGA-w39r-3j3f-p836
- CGA-xqmw-6rfq-vpcj