CVE Explorer
CVE-2026-46727
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 cr
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","product":"Ruby","vendor":"ruby-lang","versions":[{"lessThan":"4.0.5","status":"affected","version":"4.0.0","versionType":"semver"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:ac66927971c2ced23bdced678079bcc789a9b09081d80b3964f682c92de76194 · sha256:02f394d8806767db… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:ac66927971c2ced23bdced678079bcc789a9b09081d80b3964f682c92de76194 · sha256:02f394d8806767db… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-362","description":"CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:ac66927971c2ced23bdced678079bcc789a9b09081d80b3964f682c92de76194 · sha256:02f394d8806767db… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"url":"https://hackerone.com/reports/3607434"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ac66927971c2ced23bdced678079bcc789a9b09081d80b3964f682c92de76194 · sha256:02f394d8806767db… · /containers/cna/references/0
{"url":"https://www.ruby-lang.org/en/news/2026/05/20/getaddrinfo-cve-2026-46727/"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ac66927971c2ced23bdced678079bcc789a9b09081d80b3964f682c92de76194 · sha256:02f394d8806767db… · /containers/cna/references/1
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.