Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. concurrent-ruby
  4. ›
  5. CVE-2026-54906

CVE-2026-54906: Concurrent Ruby: ReadWriteLock allows wrong-thread write release and stray read-release counter corruption

June 19, 2026

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. It should not be framed as an authorization bypass; the lock is an in-process concurrency primitive, not an access-control boundary.

References

  • github.com/advisories/GHSA-6wx8-w4f5-wwcr
  • github.com/ruby-concurrency/concurrent-ruby/security/advisories/GHSA-6wx8-w4f5-wwcr
  • nvd.nist.gov/vuln/detail/CVE-2026-54906

Code Behaviors & Features

Detect and mitigate CVE-2026-54906 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.7

Fixed versions

  • 1.3.7

Solution

Upgrade to version 1.3.7 or above.

Impact 4 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-414: Missing Lock Check
  • CWE-667: Improper Locking

Source file

gem/concurrent-ruby/CVE-2026-54906.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 20 Jun 2026 12:17:16 +0000.