Skip to main content
← All vulnerabilities
CVE-2026-54906GHSA-6WX8-W4F5-WWCR

concurrent-ruby: ReadWriteLock allows wrong-thread write release and stray read-release counter corruption

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.3.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • ruby-concurrency concurrent-ruby

    fixed in 1.3.7

  • concurrent-rubyRubyGems

    fixed in 1.3.7

References 1

GitHub · ruby-concurrency/concurrent-ruby