CVEfocus › CVE database › CVE-2026-46727

CVE-2026-46727

CVSS 8.1 HighEPSS 0.5% (higher than 35% of CVEs)Published 2026-05-22Updated 2026-05-22Assigner: mitre

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.

CWE-362

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fix pending
3Under investigation
2Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10jrubyFix pendingUBUNTU-CVE-2026-46727
Ubuntu 26.10ruby3.3Fix pendingUBUNTU-CVE-2026-46727
Ubuntu 26.04jrubyNot affected
vulnerable_code_not_present
Ubuntu 26.04ruby3.3Under investigationUBUNTU-CVE-2026-46727
Ubuntu 25.10jrubyWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-46727
Ubuntu 25.10ruby3.3Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-46727
Ubuntu 24.04jrubyNot affected
vulnerable_code_not_present
Ubuntu 24.04ruby3.2Under investigationUBUNTU-CVE-2026-46727
Ubuntu 22.04ruby3.0Under investigationUBUNTU-CVE-2026-46727
Ubuntu 20.04ruby2.7Fix pendingUBUNTU-CVE-2026-46727
Ubuntu 18.04ruby2.5Fix pendingUBUNTU-CVE-2026-46727
Ubuntu 16.04jrubyFix pendingUBUNTU-CVE-2026-46727
Ubuntu 16.04ruby2.3Fix pendingUBUNTU-CVE-2026-46727
Ubuntu 14.04jrubyFix pendingUBUNTU-CVE-2026-46727

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.