USN-9176-2: Ruby vulnerabilities

Publication date

20 November 2026

Overview

Several security issues were fixed in Ruby.


Packages

  • ruby2.3 - Object-oriented scripting language
  • ruby2.5 - Object-oriented scripting language
  • ruby2.7 - Object-oriented scripting language

Details

USN-9176-1 fixed vulnerabilities in Ruby. This update provides the
corresponding updates for Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu
20.04 LTS.

Original advisory details:

Stephan Lipp discovered that Ruby incorrectly handled converting the case
of certain strings. An attacker could possibly use this issue to cause a
denial of service or execute arbitrary code. (GHSA-34m4-m9fh-gqp5)

Owais Lone discovered that Ruby incorrectly handled compiling certain
large regular expressions. An attacker could possibly use this issue to
cause a denial of service or execute arbitrary code. (GHSA-3p8q-wmhx-vm2w)

Stephan Lipp discovered that Ruby incorrectly handled converting certain
regular expressions to strings. An attacker could possibly use this issue
to cause a denial of service or execute arbitrary code. (GHSA-7whj-
cfh7-xgm4)

Stephan Lipp discovered that Ruby incorrectly handled memory when parsing
...

USN-9176-1 fixed vulnerabilities in Ruby. This update provides the
corresponding updates for Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu
20.04 LTS.

Original advisory details:

Stephan Lipp discovered that Ruby incorrectly handled converting the case
of certain strings. An attacker could possibly use this issue to cause a
denial of service or execute arbitrary code. (GHSA-34m4-m9fh-gqp5)

Owais Lone discovered that Ruby incorrectly handled compiling certain
large regular expressions. An attacker could possibly use this issue to
cause a denial of service or execute arbitrary code. (GHSA-3p8q-wmhx-vm2w)

Stephan Lipp discovered that Ruby incorrectly handled converting certain
regular expressions to strings. An attacker could possibly use this issue
to cause a denial of service or execute arbitrary code. (GHSA-7whj-
cfh7-xgm4)

Stephan Lipp discovered that Ruby incorrectly handled memory when parsing
certain regular expressions. An attacker could possibly use this issue to
cause a denial of service or execute arbitrary code. (GHSA-7x2q-68qv-6p8x)

It was discovered that Ruby incorrectly handled converting the case of
certain large strings. An attacker could possibly use this issue to cause
a denial of service or execute arbitrary code. (GHSA-87fm-7w84-j2px)

It was discovered that Ruby incorrectly handled certain case-insensitive
regular expressions. An attacker could possibly use this issue to cause a
denial of service or obtain sensitive information. (GHSA-pvgc-g7gj-pv6h)

Stephan Lipp discovered that Ruby incorrectly handled certain case-
insensitive regular expressions. An attacker could possibly use this issue
to cause a denial of service or obtain sensitive information. (GHSA-
wpqw-5qxg-m68r)


Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
20.04 LTS focal libruby2.7 –  2.7.0-5ubuntu1.18+esm6  
ruby2.7 –  2.7.0-5ubuntu1.18+esm6  
ruby2.7-dev –  2.7.0-5ubuntu1.18+esm6  
18.04 LTS bionic libruby2.5 –  2.5.1-1ubuntu1.16+esm9  
ruby2.5 –  2.5.1-1ubuntu1.16+esm9  
ruby2.5-dev –  2.5.1-1ubuntu1.16+esm9  
16.04 LTS xenial libruby2.3 –  2.3.1-2~ubuntu16.04.16+esm16  
ruby2.3 –  2.3.1-2~ubuntu16.04.16+esm16  
ruby2.3-dev –  2.3.1-2~ubuntu16.04.16+esm16  
ruby2.3-tcltk –  2.3.1-2~ubuntu16.04.16+esm16  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›