Skip to main content
Status (November 27, 2026):
  • Patched images: Patched Ruby images have been available on Upsun Cloud since November 19, 2026. The ruby:3.3 image ships Ruby 3.3.14, ruby:3.4 ships Ruby 3.4.13, and ruby:4.0 ships Ruby 4.0.10.
  • Rollout state: For projects without a maintenance window, a plain redeploy is enough to get the patched Ruby version. No new commit or configuration change is needed.
  • Maintenance windows: If your project has a maintenance window, Upsun Cloud applies the patch during your next window. A manual redeploy before that window doesn’t apply pending Ruby patch updates.
  • No interim workaround: The recommended action is to run a patched Ruby branch, or upgrade to a supported branch first if your app runs Ruby 3.2 or earlier.
What to do:
  • Ruby 3.3, 3.4, or 4.0 without a maintenance window: Redeploy your app if it hasn’t redeployed since patched images became available.
  • Ruby 3.3, 3.4, or 4.0 with a maintenance window: Wait for your maintenance window, then confirm the patched version.
  • Ruby 3.2 or earlier: No patched release exists for your branch. Upgrade to a supported Ruby version, then redeploy.
  • Rails or Sinatra apps: Make sure your app moves to a patched runtime even if it doesn’t handle legacy encodings directly, because these web apps are the most exposed.
  • Ruby outside Upsun Cloud: Update every Ruby runtime you manage.
On November 18, 2026, the Ruby project released Ruby 3.3.14, 3.4.13, and 4.0.10. These versions fix seven vulnerabilities in string case conversion and regular expression handling, including CVE-2026-132825, known as “Ruby2Shell”. For details, see the Ruby security announcement and the CVE record. Ruby rates the release as critical because several advisories can lead to memory corruption in Ruby itself. Upsun Cloud has made patched Ruby images available for supported Ruby branches, and projects without a maintenance window can get the patched runtime with a redeploy.

Update history

  • November 27, 2026, 15:00 UTC: First published.

What was fixed

The release addresses seven vulnerabilities in Ruby, including one CVE with a 7.4 (High) score on the CVSS v3.1 scale. CVSS (Common Vulnerability Scoring System) rates the severity of vulnerabilities from 0 to 10. Ruby’s advisories rate the combined release as critical. Rails and Sinatra web apps are the most exposed because common request handling paths can process user-controlled strings before authentication. Other Ruby apps are exposed if their code changes the case of strings received in a legacy encoding or compiles regular expressions from untrusted input. Everyone on an affected version should still make sure their app moves to a patched runtime.

How the vulnerabilities work

These vulnerabilities are memory-safety bugs in Ruby itself, not in your application code. Your app can be affected even if its own code is secure.
  • CVE-2026-132825, Ruby2Shell: Ruby can write one byte outside a heap buffer while converting the case of a string in a single-byte legacy encoding, such as ISO-8859-1 or Windows-1252. UTF-8 strings are not affected, but web apps can still receive legacy-encoded input from requests.
  • GHSA-7x2q-68qv-6p8x: Ruby can free the same memory twice while compiling a regular expression. That can corrupt process memory before the expression is used.
  • GHSA-3p8q-wmhx-vm2w: Ruby can write outside a heap buffer while compiling a regular expression. That can corrupt memory during pattern preparation.
  • GHSA-87fm-7w84-j2px: Ruby can miscalculate the size needed for case conversion when a string is larger than 4 GiB. That calculation error can lead to memory corruption.
  • GHSA-wpqw-5qxg-m68r: Ruby can read outside the intended memory area during case-insensitive regular expression matching. That can expose data from adjacent memory or destabilize the process.
  • GHSA-7whj-cfh7-xgm4: Ruby can write outside a heap buffer while converting a regular expression to a string with Regexp#to_s. That can corrupt memory during string generation.
  • GHSA-pvgc-g7gj-pv6h: Ruby can read outside the intended memory area during case-insensitive backreference matching. That can expose adjacent memory or cause the process to fail.
Because the flaws are in Ruby, updating Rails, Sinatra, or another framework doesn’t fix them by itself. Only running a patched Ruby version fixes the vulnerabilities.

Affected and patched versions

The following table maps each Ruby branch to its patched version on Upsun Cloud: Ruby 3.2 and earlier are end of life and receive no fix for these vulnerabilities. If your app runs Ruby 3.2 or earlier, upgrade to Ruby 3.3, 3.4, or 4.0, then redeploy.

Check your Ruby version

Check the Ruby version in your app container:
Replace <project ID> with your project ID, main with your environment name, and myapp with your app name. The output should show the patched version from the table above, for example ruby 3.4.13.

Retired Ruby versions

Ruby 3.2 and earlier are retired on Upsun Cloud. Retired versions are no longer available for new deployments and don’t receive upstream security updates. If your app still runs a retired Ruby branch, move it to a supported version.

What you need to do

Take action if any of the following applies to you:

Redeploy on a patched Ruby image

For projects without a maintenance window, a plain redeploy is enough to get the patched Ruby version. You don’t need a new commit or a configuration change. To force a redeploy, use the Console or the CLI for your environment. After the redeploy finishes, check your Ruby version. If your app already redeployed after November 19, 2026, confirm that it runs the patched version.

If your project has a maintenance window

If your project has a maintenance window, the patch applies during your next window. A manual redeploy before that window doesn’t apply pending Ruby patch updates. After the maintenance window finishes, check your Ruby version.

Upgrade to a supported Ruby version

Running Ruby 3.2 or earlier? Upgrade to Ruby 3.3 or later before you redeploy. Ruby 3.2 and earlier are retired on Upsun Cloud, and upstream doesn’t provide a fix for these vulnerabilities on those branches.
To upgrade, change the type of your app in your configuration file. This example uses Ruby 4.0:
Test the change in a preview environment, then merge it to production. After the deployment finishes, check your Ruby version.

Outside Upsun Cloud

Update Ruby anywhere else you run it, including:
  • Local development machines: Install Ruby 3.3.14, 3.4.13, or 4.0.10.
  • Docker images: Rebuild images from a patched Ruby base image.
  • Continuous integration (CI) pipelines: Update the Ruby version used by test, build, and release jobs.
If those systems use Ruby only for tooling, update them too.

How Upsun Cloud responded

Upsun Cloud’s response centers on making patched Ruby images available for supported Ruby branches and applying them through redeploys or maintenance windows. There is no interim workaround for these vulnerabilities. The only recommended action is to run a patched Ruby version.

After the release: patched Ruby images

After the Ruby project published the patched versions, Upsun Cloud made patched Ruby images available on November 19, 2026. The ruby:3.3 image ships Ruby 3.3.14, ruby:3.4 ships Ruby 3.4.13, and ruby:4.0 ships Ruby 4.0.10. For projects without a maintenance window, a plain redeploy picks up the patched image. The redeploy doesn’t require a new commit or configuration change.

Maintenance-window projects

Projects with a configured maintenance window receive the patch during their next window. A regular deployment before the window doesn’t apply pending patch updates.

Beyond the standard rollout

Upsun Cloud also covers the cases that need customer action:
  • Supported Ruby branches: Ruby 3.3, 3.4, and 4.0 have patched images available.
  • Retired Ruby branches: Ruby 3.2 and earlier don’t receive a fix, so those apps need an upgrade to a supported branch.
  • Other Ruby runtimes: Ruby outside Upsun Cloud needs to be updated separately.

Acknowledgments

Upsun Cloud thanks the researchers and organizations who discovered and responsibly disclosed these vulnerabilities:
  • Ada Logics and Anthropic: Stephan Lipp for GHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x, GHSA-wpqw-5qxg-m68r, and GHSA-7whj-cfh7-xgm4.
  • HackerOne: baba__yaga for GHSA-87fm-7w84-j2px.
  • HackerOne: aphantom for GHSA-3p8q-wmhx-vm2w.
  • Ruby community: Hiroya Fujinami and Hiroshi SHIBATA for GHSA-pvgc-g7gj-pv6h.
Thanks also to the Ruby security team for coordinating the disclosure and shipping fixes.

Questions

If you have questions about your project, contact Upsun Cloud support.
Last modified on December 1, 2026