On this page (6 sections)

Ubuntu has published USN-9176-1, a security notice covering several vulnerabilities in Ruby. The notice is dated 19 November 2026 and applies to Ubuntu 22.04 LTS, 24.04 LTS, 26.04 LTS and 26.10.

If you run Ruby applications or scripts on Ubuntu using the distribution's Ruby packages, you should install the updated packages. Only one publisher, Ubuntu itself, covers this story so far, so details beyond its notice are limited.

What Ubuntu says was fixed

The notice describes several separate issues in how Ruby handles strings and regular expressions. Ubuntu identifies them by GitHub advisory IDs rather than CVE numbers, and the research does not include CVE records or severity scores for them. The notice credits Stephan Lipp and Owais Lone for most of the findings, and says others were discovered without naming a reporter.

For most of the issues, Ubuntu says an attacker could possibly cause a denial of service or execute arbitrary code. For two of them, the wording is denial of service or obtaining sensitive information. The word used is possibly, so treat these as potential outcomes, not confirmed attacks.

Issues listed in USN-9176-1, as described by Ubuntu
Advisory IDProblem areaPossible impact (per Ubuntu)
GHSA-34m4-m9fh-gqp5Converting the case of certain stringsDenial of service or arbitrary code execution
GHSA-3p8q-wmhx-vm2wCompiling certain large regular expressionsDenial of service or arbitrary code execution
GHSA-7whj-cfh7-xgm4Converting certain regular expressions to stringsDenial of service or arbitrary code execution
GHSA-7x2q-68qv-6p8xMemory handling when parsing certain regular expressionsDenial of service or arbitrary code execution
GHSA-87fm-7w84-j2pxConverting the case of certain large stringsDenial of service or arbitrary code execution
GHSA-pvgc-g7gj-pv6hCertain case-insensitive regular expressionsDenial of service or obtaining sensitive information
GHSA-wpqw-5qxg-m68rCertain case-insensitive regular expressionsDenial of service or obtaining sensitive information
The notice text is truncated in places ('It was discovered that Ruby incorrectly handled...'), so there may be wording we have not seen. The table lists only the seven advisory IDs visible in the source.

Why string and regex bugs matter for web apps

Case conversion and regular expressions are common building blocks in web applications: routing, parameter validation, search, slug generation and input filtering are typical places they appear. When a language runtime mishandles memory in these routines, input that an application passes straight through could reach the flawed code. That is why the notice's mention of possible code execution and information disclosure deserves attention, even though the research gives no exploitation details and we do not speculate on them.

Whether a given application is reachable depends on whether it feeds untrusted input into the affected operations, or lets users supply regular expressions. The research does not say how likely that is, so the safe assumption is to patch anything that processes external input with Ruby.

Who is affected

The notice lists fixed packages for four Ubuntu releases. The package you need depends on the release:

  • Ubuntu 22.04 LTS (jammy): ruby3.0, libruby3.0, ruby3.0-dev
  • Ubuntu 24.04 LTS (noble): ruby3.2, libruby3.2, ruby3.2-dev
  • Ubuntu 26.04 LTS (resolute): ruby3.3, libruby3.3, ruby3.3-dev
  • Ubuntu 26.10 (stonking): ruby3.3, libruby3.3, ruby3.3-dev

Ruby installed another way, for example through a version manager, a Docker image based on a different distribution, or a source build, is not covered by this Ubuntu notice. The research does not say whether upstream Ruby releases carry the same fixes, so check your Ruby vendor or version manager separately.

How to check your exposure

This read-only command lists the installed Ruby packages and their versions on Ubuntu. Compare the output with the fixed versions in the table below.

List installed Ruby packages and versions (Ubuntu)Shell
dpkg -l | grep -E '^ii\s+(lib)?ruby3'

This shows which Ruby your shell actually runs, which helps you spot a version-manager install that the Ubuntu update will not change.

Show the Ruby binary and version in use (any Ubuntu host)Shell
which ruby && ruby -v
Fixed package versions from USN-9176-1
Ubuntu releasePackageFixed version
26.10ruby3.3, libruby3.3, ruby3.3-dev3.3.8-2.2ubuntu4.1
26.04 LTSruby3.3, libruby3.3, ruby3.3-dev3.3.8-2ubuntu3.2
24.04 LTSruby3.2, libruby3.2, ruby3.2-dev3.2.3-1ubuntu0.24.04.9
22.04 LTSruby3.0, libruby3.0, ruby3.0-dev3.0.2-7ubuntu2.14

What to do now

Ubuntu says a standard system update makes the necessary changes. These commands refresh package lists and upgrade only the Ruby packages that are already installed.

Upgrade installed Ruby packages (Ubuntu 22.04, 24.04, 26.04, 26.10)Shell
sudo apt update
sudo apt install --only-upgrade ruby3.0 libruby3.0 ruby3.0-dev ruby3.2 libruby3.2 ruby3.2-dev ruby3.3 libruby3.3 ruby3.3-dev
Caution. Your host may have only some of these packages, and apt will report an error for names that are not available on your release. In that case, run the upgrade with only the packages shown by the dpkg command above, or run a normal full system update. Long-running Ruby processes keep using the old library until restarted.

After upgrading, confirm the new version with the check command below, then restart services that run Ruby so they load the fixed library.

Confirm the installed version of one package (replace ruby3.3 with your package)Shell
apt-cache policy ruby3.3
  1. Run the dpkg command to find which Ruby packages are installed on each Ubuntu host.
  2. Upgrade them with apt to the versions in the notice, or run a full system update.
  3. Restart Ruby application servers, background workers and scheduled jobs that use system Ruby.
  4. Re-run the version check and compare against the fixed versions table.
  5. Look for Ruby installed outside apt (version managers, containers, source builds) and update those through their own channels.
  6. Prioritize hosts that process untrusted input or accept user-supplied patterns.
Tip. If you cannot patch immediately, reduce exposure by avoiding user-supplied regular expressions and by limiting who can reach internal Ruby services. This is general hardening, not a fix described in the notice.

Monitoring after the update

Because the possible impacts include denial of service, watch for Ruby processes that crash, hang or spike in CPU or memory on public-facing apps. Keep an eye on application error logs for unusual request patterns around search, routing and validation endpoints.

Uptime and response-time monitoring can show whether a site is struggling, for example with Webforta Monitor. For background, see our guide to uptime monitoring.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. USN-9176-1: Ruby vulnerabilities | Ubuntu security notices | Ubuntuubuntu.com ·
  • Ubuntu
  • Ruby
  • USN
  • patching
  • regex