{"id":"CVE-2026-54905","published":"2026-06-24T15:42:44Z","modified":"2026-06-24T16:41:34Z","title":"concurrent-ruby: `ReentrantReadWriteLock` read-count overflow grants a write lock without exclusivity","vendor":"ruby-concurrency","product":"concurrent-ruby","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00153,"percentile":0.04508,"provenance":"source"},"cwes":[{"id":"CWE-128","name":"Wrap-around Error"}],"references":[{"url":"https://github.com/ruby-concurrency/concurrent-ruby/security/advisories/GHSA-wv3x-4vxv-whpp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":2.3,"factors":[{"name":"EPSS percentile","points":0.9},{"name":"CVSS severity","points":1.4}]},"vendorSlug":"ruby-concurrency","affectedVersions":[{"vendor":"ruby-concurrency","product":"concurrent-ruby","versions":["< 1.3.7"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-24T16:41:31.221708Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"concurrent-ruby","vulnerableRanges":["<1.3.7"],"patched":["1.3.7"],"from":["GHSA-wv3x-4vxv-whpp"],"provenance":"source"}],"summary":{"text":"The concurrent-ruby library's Concurrent::ReentrantReadWriteLock stores a thread's local read and write hold counts in a single integer, so a read count that overflows into the write-lock bit makes it report a write lock without exclusivity. An attacker who can run code in the affected application, with local access and low privileges and needing a thread to acquire the read lock 32,768 times, can cause try_write_lock to return true while other threads still hold or acquire read locks concurrently.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:23:45Z"},"euvd":{"id":"EUVD-2026-39000","exploited":false,"provenance":"source"}}