File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ engine : ruby
3+ cve : 2026-46727
4+ url : https://nvd.nist.gov/vuln/detail/CVE-2026-46727
5+ title : CVE-2026-46727 - Use-after-free in pthread-based getaddrinfo timeout handler
6+ date : 2026-05-20
7+ description : |
8+ ## SUMMARY
9+
10+ A race condition leading to a use-after-free in the pthread-based
11+ getaddrinfo timeout handler (rb_getaddrinfo in ext/socket/raddrinfo.c)
12+ allows a remote attacker who can delay DNS responses near the
13+ user-specified timeout to crash a Ruby process that calls
14+ Addrinfo.getaddrinfo(..., timeout:) or Socket.tcp(..., resolv_timeout:).
15+ Memory-corruption-based exploitation is theoretically possible. The
16+ attack could, for example, be carried out through a crafted
17+ authoritative DNS server or recursive resolver.
18+
19+ This vulnerability has been assigned the CVE identifier CVE-2026-46727.
20+
21+ This issue has been fixed in Ruby 4.0.5. We recommend upgrading Ruby.
22+ cvss_v3 : 8.1
23+ unaffected_versions :
24+ - " < 4.0"
25+ patched_versions :
26+ - " >= 4.0.5"
27+ related :
28+ url :
29+ - https://nvd.nist.gov/vuln/detail/CVE-2026-46727
30+ - https://www.ruby-lang.org/en/news/2026/05/20/ruby-4-0-5-released
31+ - https://github.com/ruby/ruby/releases/tag/v4.0.5
32+ - https://www.ruby-lang.org/en/news/2026/05/20/getaddrinfo-cve-2026-46727
33+ - https://hackerone.com/reports/3607434
34+ notes : |
35+ - "Ruby 3.4 series and earlier are not affected." in ruby-lang post.
You can’t perform that action at this time.
0 commit comments