cve.bz

CVE-2026-46727 ruby-lang ruby: Race Condition

8.1 highEPSS 0.5%

High (8.1) in ruby-lang ruby. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-46727 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-46727?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-46727?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-46727 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
ruby-lang Rubyfrom 4.0.0 before 4.0.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTS, 18.04:LTS, Pro:14.04:LTSjrubyno fix listedUBUNTU-CVE-2026-46727
Ubuntu22.04:LTSruby3.0no fix listedUBUNTU-CVE-2026-46727
Ubuntu24.04:LTSruby3.2no fix listedUBUNTU-CVE-2026-46727
Ubuntu25.10, 26.10jruby, ruby3.3no fix listedUBUNTU-CVE-2026-46727
Ubuntu26.04:LTSruby3.3no fix listedUBUNTU-CVE-2026-46727
UbuntuPro:16.04:LTSruby2.3no fix listedUBUNTU-CVE-2026-46727
UbuntuPro:18.04:LTSruby2.5no fix listedUBUNTU-CVE-2026-46727
UbuntuPro:20.04:LTSruby2.7no fix listedUBUNTU-CVE-2026-46727
openSUSETumbleweedruby4.04.0.5-1.1openSUSE-SU-2026:10839-1

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON