CVE-2026-46727: Race Condition
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 (rbgetaddrinfo 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(..., resolvtimeout:). Memory-corruption-based exploitation is theoretically possible. The attack could, for example, be carried out through a crafted authoritative DNS server or recursive resolver.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-46727?
The severity of CVE-2026-46727 is rated high with a score of 8.1.
How do I fix CVE-2026-46727?
To fix CVE-2026-46727, upgrade Ruby to version 4.0.5 or later.
What vulnerabilities are associated with CVE-2026-46727?
CVE-2026-46727 is associated with race condition and use-after-free vulnerabilities.
What can an attacker do with CVE-2026-46727?
An attacker can exploit CVE-2026-46727 to crash a Ruby process through delayed DNS responses.
In which versions of Ruby is CVE-2026-46727 found?
CVE-2026-46727 affects Ruby 4 versions prior to 4.0.5.