CVE-2026-46727
highpriority · track · 0EPSS 0.005 · 41 %ileDEEUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (6)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-1590Ruby: Schwachstelle ermöglicht Denial of ServiceDeutsch2026-05-19csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in Ruby ausnutzen, um einen Denial of Service Angriff durchzuführen.
- BIT-ruby-2026-467272026-05-27vendor · osvUS
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.
- BIT-ruby-min-2026-467272026-05-27vendor · osvUS
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.
also known as (5)
Other names and identifiers for this entity.
- CNNVD-202605-4708cnnvd
- EUVD-2026-31477enisa_euvd
- GHSA-jfc8-2xw7-c79menisa_euvd
- BIT-ruby-2026-46727osv
- BIT-ruby-min-2026-46727osv
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://hackerone.com/reports/3607434cnnvd
- https://www.ruby-lang.org/en/news/2026/05/20/getaddrinfo-cve-2026-46727/cnnvd
- https://www.ruby-lang.org/zh_cn/documentation/installation/Patchcnnvd
- https://hackerone.com/reports/3607434enisa_euvd
- https://www.ruby-lang.org/en/news/2026/05/20/getaddrinfo-cve-2026-46727/enisa_euvd
- https://hackerone.com/reports/3607434Permissions Requirednvd
- https://www.ruby-lang.org/en/news/2026/05/20/getaddrinfo-cve-2026-46727/Vendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan