Race Condition Affecting ruby-4.0-doc package, versions <4.0.5-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.48% (41st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-MINIMOSLATEST-RUBY40DOC-16917419
  • published28 May 2026
  • disclosed22 May 2026

Introduced: 22 May 2026

CVE-2026-46727  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade Minimos:latest ruby-4.0-doc to version 4.0.5-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-4.0-doc package and not the ruby-4.0-doc package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

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.