Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
concurrent-ruby: ReadWriteLock allows wrong-thread write release and stray read-release counter corruption
Vulnerability Description
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.
CVSS Information
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
Vulnerability Type
加锁检查缺失
Vulnerability Title
ruby-concurrency Concurrent Ruby 资源管理错误漏洞
Vulnerability Description
ruby-concurrency Concurrent Ruby是ruby-concurrency组织开源的一款并发编程工具库。 ruby-concurrency Concurrent Ruby 1.3.7之前版本存在资源管理错误漏洞,该漏洞源于同步正确性问题,具体体现在Concurrent::ReadWriteLock#release_write_lock未验证调用线程是否获取了写锁,以及Concurrent::ReadWriteLock#release_read_lock在未持有读锁时仍然递减共享计数
CVSS Information
N/A
Vulnerability Type
N/A