Skip to content

[CVE] SECURITY-14620: upgrade ruby 2.3.1 → 3.4.13 - #10

Open
dtt-bot[bot] wants to merge 1 commit into
masterfrom
security/security-14620/root-ruby
Open

dtt-bot[bot] wants to merge 1 commit into
masterfrom
security/security-14620/root-ruby

Conversation

@dtt-bot

@dtt-bot dtt-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Security remediation for SECURITY-14620: Ruby Ships Fixes for 7 Flaws, Including Critical Ruby2Shell, Said to Hit Default Rails Apps Pre-Auth

Advisories: CVE-2026-132825, GHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x, GHSA-3p8q-wmhx-vm2w, GHSA-87fm-7w84-j2px, GHSA-7whj-cfh7-xgm4, GHSA-wpqw-5qxg-m68r, GHSA-pvgc-g7gj-pv6h
Why: Exposure check found affected versions here; the target is the smallest fixed release (no fix exists in the current major version).
Upgrade class: ⚠️ major — no fixed release exists in the current major version, so this crosses a major boundary. Read the breakability analysis before approving.

What changed

Files changed in this PR (vs master):
.ruby-version | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Latest run:

  • .ruby-version: ruby → 3.4.13

Breakability analysis

Automated analysis of upstream release notes; not reviewed by a person.

**Risk:** High — Major version jump (2.3.1 → 3.4.13) with numerous breaking changes across language, stdlib, and security fixes. Multiple removed APIs, changed defaults, and stricter parsing will likely break legacy code.

**What changed between these versions that can break apps:**

- Ruby 3.0.0: `TRUE`/`FALSE`/`NIL` constants removed; use `true`/`false`/`nil` instead
- Ruby 3.0.0: Regexp literals and Range objects now frozen; code modifying them will fail
- Ruby 3.0.0: `Kernel#open` no longer redefines for subprocess creation; use `URI.open` directly
- Ruby 3.0.0: `SortedSet` removed from stdlib
- Ruby 3.0.0: Promoted 30+ stdlib libraries to default gems (English, abbrev, base64, drb, debug, erb, find, net-ftp, net-http, net-imap, net-protocol, open-uri, optparse, pp, prettyprint, resolv-replace, resolv, rinda, set, securerandom, shellwords, tempfile, tmpdir, time, tsort, un, weakref, digest, io-nonblock, io-wait, nkf, pathname, syslog, win32ole); removed SDBM and WEBrick
- Ruby 2.7.0: CMath, Scanf, Shell, Synchronizer, ThreadsWait, E2MM no longer bundled; install as gems
- Ruby 2.7.0: Proc#to_s format changed
- Ruby 3.1.0: `lib/debug.rb` replaced with `debug.gem`; `ext/readline` retired in favor of `reline`
- Ruby 3.2.0: `Fixnum` and `Bignum` constants removed (unified into Integer)
- Ruby 3.2.0: `Random::DEFAULT` removed
- Ruby 3.2.0: `Dir.exists?`, `File.exists?` removed; use `Dir.exist?`, `File.exist?`
- Ruby 3.2.0: `Kernel#=~`, `Kernel#taint`, `Kernel#untaint`, `Kernel#tainted?`, `Kernel#trust`, `Kernel#untrust`, `Kernel#untrusted?` removed
- Ruby 3.2.0: `Method#public?`, `Method#private?`, `Method#protected?` and UnboundMethod equivalents removed
- Ruby 3.2.0: Psych no longer bundles libyaml; Fiddle no longer bundles libffi—install system packages
- Ruby 3.2.0: `URI.parse` returns empty string for host instead of nil
- Ruby 3.3.0: Subprocess creation via `Kernel#open`, `URI.open`, `IO.binread`, `IO.foreach`, `IO.readlines`, `IO.read`, `IO.write` deprecated
- Ruby 3.3.0: `Kernel#lambda` with non-lambda, non-literal block now raises ArgumentError instead of returning unmodified
- Ruby 3.3.0: `racc` promoted to bundled gem; add to Gemfile if used
- Ruby 3.4.0: Error message format changed (backticks → single quotes, class names added to method names)
- Ruby 3.4.0: `Hash#inspect` rendering changed (symbol keys use modern syntax, other keys have spaces around `=>`)
- Ruby 3.4.0: `Kernel#Float()` and `String#to_f` now accept decimal strings with omitted decimal part (e.g., `"1."` → `1.0`)
- Ruby 3.4.0: `Refinement#refined_class` removed
- Ruby 3.4.0: Net::HTTP deprecated constants removed (ProxyMod, HTTPInformationCode, HTTPSuccessCode, HTTPRedirectionCode, HTTPRetriableCode, HTTPClientErrorCode, HTTPFatalErrorCode, HTTPServerErrorCode, HTTPResponseReceiver, HTTPResponceReceiver)
- Ruby 3.4.0: `Timeout.timeout` rejects negative values
- Ruby 3.4.0: URI parser switched to RFC 3986 compliant from RFC 2396

**Check in this repo:**
- `.ruby-version` — verify all code paths handle removed APIs and changed error message formats
- Application code using `TRUE`, `FALSE`, `NIL`, `Fixnum`, `Bignum`, `Dir.exists?`, `File.exists?`, `Kernel#=~`, taint/trust methods
- Code modifying Regexp or Range objects
- Subprocess creation via `Kernel#open` or `IO` methods
- Net::HTTP usage with removed constants
- URI parsing logic expecting RFC 2396 behavior
- Gemfile/gemspec for dependencies on removed bundled gems (CMath, Scanf, Shell, Synchronizer, ThreadsWait, E2MM, racc)
- Error handling code parsing exception messages (format changed)
- Hash inspection/serialization code expecting old `Hash#inspect` format

**Rollback:** Revert `.ruby-version` to 2.3.1 and test all application code paths, especially error handling, stdlib usage, and third-party gem compatibility.

_Sources: Ruby 2.3.1 → 3.4.13 (Ruby 3.0.0 NEWS, Ruby 2.7.0 NEWS, Ruby 3.1.0 NEWS, Ruby 3.2.0 NEWS, Ruby 3.3.0 NEWS, Ruby 3.4.0 NEWS, ruby/ruby releases 3.4.0 → 3.4.13)_

How to review

  • Manifest and lockfile were regenerated by the repo's own package manager — no hand-edited lockfile entries.
  • This repo's CI ran on this commit; merge when it is green and the change looks right.
  • Anything the automation could not finish is marked ⚠️ above.

Opened by the Security remediation engine (Tines CVE story → SalesLoft/remediator-engine). Jira: SECURITY-14620

@dtt-bot dtt-bot Bot added security-remediation Automated security remediation major-upgrade Major version upgrade - read the breakability analysis remediation-ci-green labels Nov 24, 2026
@dtt-bot

dtt-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown
Author

✅ CI is green on 91142e2 (8 checks). This remediation PR is ready for review and approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major-upgrade Major version upgrade - read the breakability analysis remediation-ci-green security-remediation Automated security remediation

0 participants