{"answers":{"affected":"2 open source packages ship an affected version, including ruby and ruby-min. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-46727 in the wild and no public exploit code.","fix":"Upgrade ruby to 4.0.5 or later.","what":"CVE-2026-46727 is a high-severity use after free vulnerability in Ruby-Lang Ruby, published on 22 May 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-46727 and fix it if it is affected.\n\nWhat it is: CVE-2026-46727 is a high-severity use after free vulnerability in Ruby-Lang Ruby, published on 22 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-46727 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ruby (Bitnami): affected from 4.0.0; fixed in 4.0.5\n- ruby-min (Bitnami): affected from 4.0.0; fixed in 4.0.5\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-46727/ (Markdown: https://insights.sbomify.com/CVE-2026-46727/index.md)","id":"CVE-2026-46727","markdown":"https://insights.sbomify.com/CVE-2026-46727/index.md","name":"CVE-2026-46727","record":{"aliases":["BIT-ruby-2026-46727","BIT-ruby-min-2026-46727","GHSA-jfc8-2xw7-c79m","MINI-hw54-f695-m9w5","UBUNTU-CVE-2026-46727","openSUSE-SU-2026:10839-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby programming language","requires_auth":"none","summary":"A race condition in Ruby's DNS timeout handler causes a use-after-free, allowing remote attackers to crash processes or potentially execute code via malicious DNS responses.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"ruby","vendor":"ruby-lang"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"description":"An issue was discovered in Ruby 4 before 4.0.5. A race condition leading to a use-after-free in the pthread-based getaddrinfo timeout handler (rb_getaddrinfo in ext/socket/raddrinfo.c) allows a remote attacker who can delay DNS responses near the user-specified timeout to crash a Ruby process that calls Addrinfo.getaddrinfo(..., timeout:) or Socket.tcp(..., resolv_timeout:). Memory-corruption-based exploitation is theoretically possible. The attack could, for example, be carried out through a crafted authoritative DNS server or recursive resolver.","ecosystems":["Bitnami","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Use after free in Ruby","id":"CVE-2026-46727","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"ruby-lang:ruby","products":["ruby-lang:ruby"],"type":"use_after_free","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Security feature bypass in U-Boot","id":"CVE-2026-46728"},"packages":[{"ecosystem":"Bitnami","fixed":["4.0.5"],"introduced":["4.0.0"],"last_affected":[],"package":"ruby","purl":"pkg:bitnami/ruby","source":"BIT-ruby-2026-46727"},{"ecosystem":"Bitnami","fixed":["4.0.5"],"introduced":["4.0.0"],"last_affected":[],"package":"ruby-min","purl":"pkg:bitnami/ruby-min","source":"BIT-ruby-min-2026-46727"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.0.5-1.1"],"introduced":["0"],"last_affected":[],"package":"ruby4.0","purl":"pkg:rpm/opensuse/ruby4.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10839-1"}],"prev":{"headline":"Apache Camel-Vertx-Websocket: The inbound consumer maps externally-supplied WebSocket query and path parameters into the Exchange without a HeaderFilterStrategy","id":"CVE-2026-46726"},"products":["Ruby"],"published":"2026-05-22","related":[{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-4124","kev_date_added":null,"published":"2009-12-11"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2022-28738","kev_date_added":null,"published":"2022-05-09"},{"cvss_score":9.8,"headline":"Weak cryptography in OpenSSL extension of Ruby (Git trunk)","id":"CVE-2011-4121","kev_date_added":null,"published":"2019-11-26"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2017-17790","kev_date_added":null,"published":"2017-12-20"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-11465","kev_date_added":null,"published":"2017-07-19"},{"cvss_score":9.8,"headline":"Memory corruption in Ruby","id":"CVE-2016-2336","kev_date_added":null,"published":"2017-01-06"},{"cvss_score":9.8,"headline":"Code injection in Ruby","id":"CVE-2016-2337","kev_date_added":null,"published":"2017-01-06"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-22","vendors":["ruby-lang"]},"summary":"A race condition in Ruby's DNS timeout handler causes a use-after-free, allowing remote attackers to crash processes or potentially execute code via malicious DNS responses.","url":"https://insights.sbomify.com/CVE-2026-46727/"}