{"answers":{"affected":"2 open source packages ship an affected version, including concurrent-ruby. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54904 exists.","fix":"Upgrade concurrent-ruby to 1.3.7 or later.","what":"CVE-2026-54904 is a high-severity denial of service vulnerability in ruby-concurrency concurrent-ruby, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-54904 and fix it if it is affected.\n\nWhat it is: CVE-2026-54904 is a high-severity denial of service vulnerability in ruby-concurrency concurrent-ruby, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54904 exists.\n\nAffected packages and fixed versions:\n- concurrent-ruby (RubyGems): affected all versions; fixed in 1.3.7\n- concurrent-ruby (RubyGems): affected all versions; fixed in 1.3.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-54904/ (Markdown: https://insights.sbomify.com/CVE-2026-54904/index.md)","id":"CVE-2026-54904","markdown":"https://insights.sbomify.com/CVE-2026-54904/index.md","name":"CVE-2026-54904","record":{"aliases":["CLEANSTART-2026-UD48034","CLEANSTART-2026-YZ65956","DEBIAN-CVE-2026-54904","GHSA-h8w8-99g7-qmvj","MINI-2cf6-2h4p-gqcj","MINI-2rf9-4vf9-2xm5","MINI-2w6j-22vh-hj7j","MINI-2wpw-pv7f-p586","MINI-459v-r6vf-vv3x","MINI-477w-rhg4-pg43","MINI-59wf-45gf-vjp8","MINI-65wc-3vfv-2f78","MINI-6736-46px-vqpm","MINI-8563-c827-p4q8","MINI-865w-rpqx-rc97","MINI-97wp-6p6m-6h3v","MINI-cmpm-m559-jm96","MINI-f57x-wc6r-747g","MINI-fjhq-7pq5-4528","MINI-h2q6-6xvx-fjxf","MINI-h922-37j9-9x5f","MINI-h98f-cm5r-98gg","MINI-m8hr-fp8x-9f4f","MINI-p73r-fccj-w5cx","MINI-pfjx-3vf5-w63c","MINI-r25m-jjr9-7f5m","MINI-r4c5-pc56-c3g6","MINI-wpf3-3352-rrc9","UBUNTU-CVE-2026-54904"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby concurrency library","requires_auth":"none","summary":"Attackers can cause CPU exhaustion or service hangs in Ruby applications using concurrent-ruby by triggering a livelock in AtomicReference updates with NaN values.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"concurrent_ruby","vendor":"rubyconcurrency"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"description":"concurrent-ruby is a modern concurrency tools for Ruby. Prior to 1.3.7, Concurrent::AtomicReference#update can enter a permanent busy retry loop when the current value is Float::NAN. The issue is caused by the interaction between AtomicReference#update, which retries until compare_and_set(old_value, new_value) succeeds; Numeric compare_and_set, which checks old == old_value before attempting the underlying atomic swap.; and Ruby NaN semantics, where Float::NAN == Float::NAN is always false. As a result, once an AtomicReference contains Float::NAN, calling #update repeatedly evaluates the caller's block and never returns. In services that store externally derived numeric values in an AtomicReference, this can cause CPU exhaustion or permanent request/job hangs. This vulnerability is fixed in 1.3.7.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"concurrent-ruby: `AtomicReference#update` livelocks when the stored value is `Float::NAN`","id":"CVE-2026-54904","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"concurrent-ruby: `ReentrantReadWriteLock` read-count overflow grants a write lock without exclusivity","id":"CVE-2026-54905"},"packages":[{"ecosystem":"RubyGems","fixed":["1.3.7"],"introduced":["0"],"last_affected":[],"package":"concurrent-ruby","purl":null,"source":"GHSA-h8w8-99g7-qmvj"},{"ecosystem":"RubyGems","fixed":["1.3.7"],"introduced":["0"],"last_affected":[],"package":"concurrent-ruby","purl":"pkg:gem/concurrent-ruby","source":"GHSA-h8w8-99g7-qmvj"}],"prev":{"headline":"Oj: Integer Overflow in Oj.load 2GB String Handling","id":"CVE-2026-54903"},"products":["concurrent-ruby"],"published":"2026-06-24","related":[{"cvss_score":2.1,"headline":"concurrent-ruby: ReadWriteLock allows wrong-thread write release and stray read-release counter corruption","id":"CVE-2026-54906","kev_date_added":null,"published":"2026-06-24"},{"cvss_score":2,"headline":"concurrent-ruby: `ReentrantReadWriteLock` read-count overflow grants a write lock without exclusivity","id":"CVE-2026-54905","kev_date_added":null,"published":"2026-06-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-05","vendors":["ruby-concurrency"]},"summary":"Attackers can cause CPU exhaustion or service hangs in Ruby applications using concurrent-ruby by triggering a livelock in AtomicReference updates with NaN values.","url":"https://insights.sbomify.com/CVE-2026-54904/"}