USN-5462-1: Ruby vulnerabilities

Publication date

6 June 2022

Overview

Several security issues were fixed in Ruby.


Packages

  • ruby2.5 - Object-oriented scripting language
  • ruby2.7 - Object-oriented scripting language
  • ruby3.0 - Interpreter of object-oriented scripting language Ruby

Details

It was discovered that Ruby incorrectly handled certain regular expressions.
An attacker could possibly use this issue to execute arbitrary code. This
issue only affected Ubuntu 22.04 LTS. (2022-28738)

It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to expose sensitive information.
(CVE-2022-28739)

It was discovered that Ruby incorrectly handled certain regular expressions.
An attacker could possibly use this issue to execute arbitrary code. This
issue only affected Ubuntu 22.04 LTS. (2022-28738)

It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to expose sensitive information.
(CVE-2022-28739)

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
22.04 jammy ruby3.0 –  3.0.2-7ubuntu2.1
libruby3.0 –  3.0.2-7ubuntu2.1
21.10 impish ruby2.7 –  2.7.4-1ubuntu3.2
libruby2.7 –  2.7.4-1ubuntu3.2
20.04 focal ruby2.7 –  2.7.0-5ubuntu1.7
libruby2.7 –  2.7.0-5ubuntu1.7
18.04 bionic ruby2.5 –  2.5.1-1ubuntu1.12
libruby2.5 –  2.5.1-1ubuntu1.12

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 ›