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.
| Advisory ID | Problem area | Possible impact (per Ubuntu) |
|---|---|---|
| GHSA-34m4-m9fh-gqp5 | Converting the case of certain strings | Denial of service or arbitrary code execution |
| GHSA-3p8q-wmhx-vm2w | Compiling certain large regular expressions | Denial of service or arbitrary code execution |
| GHSA-7whj-cfh7-xgm4 | Converting certain regular expressions to strings | Denial of service or arbitrary code execution |
| GHSA-7x2q-68qv-6p8x | Memory handling when parsing certain regular expressions | Denial of service or arbitrary code execution |
| GHSA-87fm-7w84-j2px | Converting the case of certain large strings | Denial of service or arbitrary code execution |
| GHSA-pvgc-g7gj-pv6h | Certain case-insensitive regular expressions | Denial of service or obtaining sensitive information |
| GHSA-wpqw-5qxg-m68r | Certain case-insensitive regular expressions | Denial of service or obtaining sensitive information |
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.
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.
which ruby && ruby -v| Ubuntu release | Package | Fixed version |
|---|---|---|
| 26.10 | ruby3.3, libruby3.3, ruby3.3-dev | 3.3.8-2.2ubuntu4.1 |
| 26.04 LTS | ruby3.3, libruby3.3, ruby3.3-dev | 3.3.8-2ubuntu3.2 |
| 24.04 LTS | ruby3.2, libruby3.2, ruby3.2-dev | 3.2.3-1ubuntu0.24.04.9 |
| 22.04 LTS | ruby3.0, libruby3.0, ruby3.0-dev | 3.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.
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-devAfter upgrading, confirm the new version with the check command below, then restart services that run Ruby so they load the fixed library.
apt-cache policy ruby3.3- Run the dpkg command to find which Ruby packages are installed on each Ubuntu host.
- Upgrade them with apt to the versions in the notice, or run a full system update.
- Restart Ruby application servers, background workers and scheduled jobs that use system Ruby.
- Re-run the version check and compare against the fixed versions table.
- Look for Ruby installed outside apt (version managers, containers, source builds) and update those through their own channels.
- Prioritize hosts that process untrusted input or accept user-supplied patterns.
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.
