All vulnerabilities

Servers and applications

CVE-2026-46727

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:).…

Severity
High 8.1
Published
22 May 2026
Last changed
23 Jul 2026
Added to UpHeron
21 Oct 2026
Fixed in
4.0.5
Sources
NVD

Affected software

SoftwareAffected versions
RubyServers and applications · cpe:a:ruby-lang:ruby
  • From 4.0.0 before 4.0.5

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-46727
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-46727