Ruby

CVE-2026-46727: Use-after-free in pthread-based getaddrinfo timeout handler

A use-after-free vulnerability in Ruby’s pthread-based getaddrinfo timeout handler can let a remote attacker trigger a process crash by delaying DNS responses near the configured timeout. The issue affects Ruby 4.0.0 through 4.0.4 and Ruby 4.1.0-dev before the fix; Ruby 3.4 and earlier are not affected. Ruby 4.0.5 or later contains the fix. Until upgrading, users can avoid the affected timeout options in Addrinfo.getaddrinfo and Socket.tcp.

AI-written summary, checked against the cited sources. How summaries work

Read at Ruby