# Ruby 4.0.5 — Ruby 4.0.5 Released - Product: Ruby (https://whatsnew.fyi/product/ruby) - Vendor: Ruby - Date: 2026-05-20 - Version: 4.0.5 - Original notes: https://www.ruby-lang.org/en/news/2026/05/20/ruby-4-0-5-released/ - Permalink: https://whatsnew.fyi/product/ruby/releases/4.0.5 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- Ruby 4.0.5 has been released. This release only contains a security fix for CVE-2026-46727: Use-after-free in pthread-based getaddrinfo timeout handler and a build system regression in Ruby 4.0.4 unde… - **security** — Fix use-after-free in pthread-based getaddrinfo timeout handler (CVE-2026-46727) - **fixed** — Fix build system regression from Ruby 4.0.4