# CVE-2026-46727: An issue was discovered in Ruby 4 before 4.0.5.

- Severity: High 8.1 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-05-22T00:00:00.000Z
- Modified: 2026-09-08T08:48:19.387Z
- Also known as: BIT-RUBY-2026-46727, BIT-RUBY-MIN-2026-46727
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- ruby-lang Ruby: from 4.0.0 before 4.0.5
- ruby (Bitnami): from 4.0.0 before 4.0.5
- ruby-min (Bitnami): from 4.0.0 before 4.0.5

## Every score

- mitre: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://hackerone.com/reports/3607434> (permissions-required, web)
- <https://www.ruby-lang.org/en/news/2026/05/20/getaddrinfo-cve-2026-46727/> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-46727> (web)

## Sources

- CVE List: [CVE-2026-46727](https://www.cve.org/CVERecord?id=CVE-2026-46727), CVE Terms of Use, modified 2026-05-22
- NVD: [CVE-2026-46727](https://nvd.nist.gov/vuln/detail/CVE-2026-46727), Public domain, modified 2026-07-23
- Bitnami Vulnerability Database: [BIT-RUBY-2026-46727](https://osv.dev/vulnerability/BIT-RUBY-2026-46727), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-RUBY-MIN-2026-46727](https://osv.dev/vulnerability/BIT-RUBY-MIN-2026-46727), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-46727 · Whole record: https://cve.day/CVE-2026-46727.json · Rebuilt by cve.day 2026-11-25T22:59:22.200Z
