Skip to content

fix(deps): update dependency ruby to v3.4.12 - #87

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/ruby-3.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/ruby-3.x

Conversation

@renovate

@renovate renovate Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change Pending
ruby (source) patch 3.4.9 → 3.4.12 3.4.13
ruby (source) tools patch 3.4.9 → 3.4.12 3.4.13

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday (* 0-4,22-23 * * 1-5)
    • Only on Sunday and Saturday (* * * * 0,6)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions

github-actions Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

Renovate PR Review Results

⚖️ Safety Assessment: ✅ Safe

🔍 Release Content Analysis

This PR updates Ruby from 3.4.9 to 3.4.12, covering three patch releases (3.4.10, 3.4.11, and 3.4.12).

Ruby 3.4.10 (Released June 30, 2026)

  • Regular stable release focused on bundled gem updates
  • Updated net-imap gem to version 0.5.15 with security fixes
  • No breaking changes

Ruby 3.4.11 (Released September 23, 2026)

  • Regular scheduled maintenance release with numerous bug fixes
  • Key bug fixes:
    • Encoding issues with rb_interned_str (Bug #21842)
    • Stack underflow for partial DCE and loops (Bug #22126)
    • Parser issues with interpolation inside lambda literals and hash literals
    • Keyword-only method argument handling
    • Windows-specific fixes: heap overflow in Kernel#system (Bug #22198), ENV.keys encoding
    • Memory safety: heap use-after-free in array.flatten, IO:Buffer, and string.encode
    • Coverage data issues and signal interrupt handling
  • No breaking changes

Ruby 3.4.12 (Released October 23, 2026) - CRITICAL SECURITY RELEASE

  • Primary focus: Fixes for critical memory corruption vulnerabilities in the Onigmo regular expression engine

  • Security fixes:

    • CVE-2026-89078: Double free when parsing a pattern fails after an alternation
    • CVE-2026-93577: Integer overflow in the size of a compiled pattern
    • CVE-2026-97229: Integer overflow in CI/CD regex compilation (critical)
    • CVE-2026-110264: Overflow of internal IDs in a pattern with many repeats
    • Impact: These bugs could enable remote code execution on systems that compile regexes from untrusted user input using Regexp.new or regex interpolation
    • Important: Regexp.timeout and pattern length limits do NOT protect against these vulnerabilities
    • CVE scanner note: These CVEs identify GitLab versions, not Ruby versions, so automated CVE scanners may not flag vulnerable Ruby installations
  • Additional bug fixes (13 total):

    • IO#gets limit argument handling in edge cases (Bug #22342)
    • Curry arity handling with to_int on LLP64 systems (Bug #22284)
    • String replacement calculation in str_shared_replace (Bug #22387)
    • IO errno propagation in rb_io_maybe_wait
    • Enumerable memory safety: use-after-free when retaining each block (Bug #22388)
    • Heap buffer overflow in array.values_at() (Bug #22326)
    • String initialization encoding issues and buffer overflows (Bug #22423)
    • Regex quantifier double-free prevention (PR #13332)
    • Thread interrupt handling preserving errinfo (Bug #22415)
    • Process.fork hostname resolution in child processes (Bug #22406)
    • macOS pthread_rwlock_destroy error on fork (Bug #22445)
    • Regex ID overflow rejection (PR #16801)
    • Regexp parse tree memory leak fix (Bug #22384)
  • No breaking changes or API modifications

🎯 Impact Scope Investigation

Usage Locations in Codebase

Ruby is used in this sandbox service as one of the supported execution runtimes:

  1. Runtime Implementation (internal/sandbox/runtime.go:232-294)

    • Ruby runtime configuration with /mise/installs/ruby/current/bin/ruby
    • Bind mounts for Ruby installation and gem bundle
    • Resource limits (1024 MiB AS, 64 MiB Fsize, 32 PidsMax, 256 MiB MemMax)
    • Restricted files: Gemfile and Gemfile.lock
    • Environment variables for Bundler integration
  2. Docker Build (Dockerfile:42-47)

    • Ruby installed via mise with version pinned to RUBY_VERSION ARG
    • PATH configuration includes /mise/installs/ruby/${RUBY_VERSION}/bin
  3. Development Environment (mise.toml:8)

    • Ruby version specification for local development tooling
  4. Pre-installed Gems (internal/sandbox/defaults/ruby/Gemfile)

    • base64 (0.3.0)
    • csv (3.3.5)
    • fiddle (1.1.8)
    • These gems are not affected by the Ruby core updates
  5. E2E Test Suite (e2e/tests/runtime/ruby.yml and others)

    • 24 comprehensive test cases covering Ruby language features
    • Tests for pre-installed gems (fiddle, base64, csv)
    • Security tests validating sandbox isolation with Ruby runtime
    • Critical: Test suite includes regex usage (line 359: pattern matching with /(\d{4})-(\d{2})-(\d{2})/)

Dependency Impact

  • No gem version changes required: The bundled gems (base64, csv, fiddle) have fixed versions in Gemfile and are unaffected
  • No Go code changes required: Ruby runtime interface remains unchanged
  • No configuration changes required: nsjail settings, resource limits, and environment variables remain compatible

Breaking Changes Assessment

  • None identified: All three releases (3.4.10, 3.4.11, 3.4.12) are patch-level updates within the 3.4.x stable series
  • Ruby's semantic versioning guarantees backward compatibility for patch releases
  • The fixes address internal bugs and security vulnerabilities without changing public APIs
  • E2E test suite should pass without modifications

Security Context for This Codebase

While the sandbox service executes user-submitted Ruby code, the CVEs are NOT directly exploitable in this codebase's architecture:

  • The sandbox executes user Ruby code but does not compile regexes from user input at the host level
  • User code runs inside nsjail isolation with strict resource limits
  • If user-submitted Ruby code contains malicious regexes, they would be compiled inside the sandboxed environment with limited impact
  • However, upgrading still eliminates potential attack vectors and aligns with security best practices

💡 Recommended Actions

✅ SAFE TO MERGE IMMEDIATELY

This PR should be merged without any code modifications:

  1. No code changes required - The update is a drop-in replacement maintaining full backward compatibility
  2. No configuration updates needed - All existing settings remain valid
  3. Critical security fixes included - Especially the Regexp compilation vulnerabilities (CVE-2026-89078, CVE-2026-93577, CVE-2026-97229, CVE-2026-110264)
  4. Memory safety improvements - Multiple use-after-free and buffer overflow fixes
  5. Platform compatibility maintained - Fixes include both Linux and macOS improvements

Post-Merge Verification

  1. Run the full E2E test suite: go test -tags e2e ./e2e/...
  2. Verify all 24 Ruby runtime tests pass, including:
    • Basic execution tests
    • Pre-installed gem functionality (base64, csv, fiddle)
    • Regex pattern matching tests (validates CVE fixes)
    • Security isolation tests
  3. Run the full Docker build to verify Ruby installation: docker compose up --build

Optional Follow-up

  • Monitor for Ruby 3.4.13 (already pending according to PR description)
  • Review Ruby security announcements for the 3.4.x series

🔗 Reference Links

Generated by koki-develop/claude-renovate-review

@renovate
renovate Bot force-pushed the renovate/ruby-3.x branch from 7481c12 to 63635f0 Compare September 7, 2026 22:51
@renovate
renovate Bot force-pushed the renovate/ruby-3.x branch from 63635f0 to 5588582 Compare September 30, 2026 04:51
@renovate renovate Bot changed the title fix(deps): update dependency ruby to v3.4.10 fix(deps): update dependency ruby to v3.4.11 Sep 30, 2026
@renovate
renovate Bot force-pushed the renovate/ruby-3.x branch from 5588582 to 9e94fd2 Compare October 30, 2026 01:04
@renovate renovate Bot changed the title fix(deps): update dependency ruby to v3.4.11 fix(deps): update dependency ruby to v3.4.12 Oct 30, 2026
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.

0 participants