Race Condition in Ruby 4 getaddrinfo Leading to Use‑After‑Free and Process Crash
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| ruby-lang | Ruby | unaffected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Ruby-lang | Ruby |
|
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.478% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Title | Race Condition in Ruby 4 getaddrinfo Leading to Use‑After‑Free and Process Crash |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| First Time appeared |
Ruby-lang
Ruby-lang ruby |
|
| Weaknesses | CWE-362 | |
| CPEs | cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Ruby-lang
Ruby-lang ruby |
|
| References |
| |
| Metrics |
cvssV3_1
|