{"id":"CVE-2026-54906","published":"2026-06-24T15:46:01Z","modified":"2026-06-24T17:57:07Z","title":"concurrent-ruby: ReadWriteLock allows wrong-thread write release and stray read-release counter corruption","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::ReadWriteLock#release_write_lock does not verify that the calling thread acquired the write lock. Any thread with access to the lock object can release an active write lock held by another thread. A second writer can then enter its critical section while the first writer is still running. Concurrent::ReadWriteLock#release_read_lock also decrements the shared counter even when no read lock is held. Calling it on a fresh lock changes the counter from 0 to -1, after which normal read acquisition raises Concurrent::ResourceLimitError. This is a synchronization correctness issue in the public Concurrent::ReadWriteLock API. This vulnerability is fixed in 1.3.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00252,"percentile":0.10176,"provenance":"source"},"cwes":[{"id":"CWE-414","name":"Missing Lock Check"},{"id":"CWE-667","name":"Improper Locking"}],"references":[{"url":"https://github.com/ruby-concurrency/concurrent-ruby/security/advisories/GHSA-6wx8-w4f5-wwcr","tags":["x_refsource_CONFIRM"]}],"priority":{"score":3.5,"factors":[{"name":"EPSS percentile","points":2.04},{"name":"CVSS severity","points":1.47}]},"vendorSlug":"ruby-concurrency","affectedVersions":[{"vendor":"ruby-concurrency","product":"concurrent-ruby","versions":["< 1.3.7"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-24T17:56:44.670673Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"concurrent-ruby","vulnerableRanges":["<1.3.7"],"patched":["1.3.7"],"from":["GHSA-6wx8-w4f5-wwcr"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-38811","exploited":false,"provenance":"source"}}