USN-5806-2: Ruby vulnerability

Publication date

23 January 2023

Overview

Ruby could allow for internet traffic to be modified if a vulnerable application processed malicious user input.


Packages

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

Details

USN-5806-1 fixed vulnerabilities in Ruby. This update fixes the problem
for Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.10.

Original advisory details:

Hiroshi Tokumaru discovered that Ruby did not properly handle certain
user input for applications which generate HTTP responses using cgi gem.
An attacker could possibly use this issue to maliciously modify the
response a user would receive from a vulnerable application.

USN-5806-1 fixed vulnerabilities in Ruby. This update fixes the problem
for Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.10.

Original advisory details:

Hiroshi Tokumaru discovered that Ruby did not properly handle certain
user input for applications which generate HTTP responses using cgi gem.
An attacker could possibly use this issue to maliciously modify the
response a user would receive from a vulnerable application.

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.10 kinetic ruby3.0 –  3.0.4-7ubuntu0.1
libruby3.0 –  3.0.4-7ubuntu0.1
22.04 jammy ruby3.0 –  3.0.2-7ubuntu2.3
libruby3.0 –  3.0.2-7ubuntu2.3
18.04 bionic ruby2.5 –  2.5.1-1ubuntu1.13
libruby2.5 –  2.5.1-1ubuntu1.13

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 ›