Skip to content

Commit a9b0a73

Browse files
authored
New advisory - see Ruby 4.0.5 (#1063)
* New advisory - see Ruby 4.0.5 * Update CVE-2026-46727.yml with version changes
1 parent 9a855af commit a9b0a73

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

‎rubies/ruby/CVE-2026-46727.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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.

0 commit comments

Comments
 (0)