Skip to content

Upgrade Ruby 4.0.1 → 4.0.5#1419

Merged
rodrieiz merged 1 commit into
mainfrom
upgrade-ruby-4.0.5
Jul 14, 2026
Merged

Upgrade Ruby 4.0.1 → 4.0.5#1419
rodrieiz merged 1 commit into
mainfrom
upgrade-ruby-4.0.5

Conversation

@rodrieiz

@rodrieiz rodrieiz commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

What

Patch-level upgrade of Ruby within the 4.0.x series: 4.0.1 → 4.0.5 (latest stable).

Why

Two security fixes landed in the 4.0.x line since 4.0.1:

  • CVE-2026-41316 (fixed in 4.0.3): ERB deserialization → RCE for apps that Marshal.load untrusted data with erb + activesupport loaded (i.e. any Rails app).
  • CVE-2026-46727 (fixed in 4.0.5): use-after-free in the getaddrinfo timeout path → remote DoS via delayed DNS responses.

Changes

  • .ruby-version, Dockerfile, Dockerfile.dev: 4.0.14.0.5
  • Gemfile.lock RUBY VERSION stanza: 4.0.1p04.0.5p0

No application code changes. It's an ABI-compatible patch bump — no gem changes, no syntax changes.

CI needs no changes: ruby/setup-ruby@v1 reads .ruby-version automatically.

Verification (local, on Ruby 4.0.5)

  • bundle install (plain, no flags) → clean, empty lockfile diff
  • bundle exec rubocop → 136 files, 0 offenses
  • bundle exec rspec119 examples, 0 failures (92% coverage)

🤖 Generated with Claude Code

Patch-level bump within the 4.0.x series to pick up security fixes:
- CVE-2026-41316: ERB deserialization RCE (fixed in 4.0.3)
- CVE-2026-46727: use-after-free in getaddrinfo timeout / DoS (fixed in 4.0.5)

No application code changes; CI reads .ruby-version via ruby/setup-ruby.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@rodrieiz
rodrieiz marked this pull request as ready for review July 13, 2026 18:59
@rodrieiz
rodrieiz requested a review from a team July 13, 2026 18:59
@rodrieiz
rodrieiz merged commit 7c38315 into main Jul 14, 2026
5 checks passed
@rodrieiz
rodrieiz deleted the upgrade-ruby-4.0.5 branch July 14, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants