USN-5020-1: Ruby vulnerabilities

Publication date

21 July 2021

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

It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to execute arbitrary code.
(CVE-2021-31799)

It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to conduct
port scans and service banner extractions. This issue only affected
Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 20.10, and Ubuntu 21.04. (CVE-2021-31810)

It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to perform
machine-in-the-middle attackers to bypass the TLS protection.
(CVE-2021-32066)

It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to execute arbitrary code.
(CVE-2021-31799)

It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to conduct
port scans and service banner extractions. This issue only affected
Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 20.10, and Ubuntu 21.04. (CVE-2021-31810)

It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to perform
machine-in-the-middle attackers to bypass the TLS protection.
(CVE-2021-32066)

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
21.04 hirsute libruby2.7 –  2.7.2-4ubuntu1.2
ruby2.7 –  2.7.2-4ubuntu1.2
20.10 groovy libruby2.7 –  2.7.1-3ubuntu1.4
ruby2.7 –  2.7.1-3ubuntu1.4
20.04 focal libruby2.7 –  2.7.0-5ubuntu1.5
ruby2.7 –  2.7.0-5ubuntu1.5
18.04 bionic libruby2.5 –  2.5.1-1ubuntu1.10
ruby2.5 –  2.5.1-1ubuntu1.10
16.04 xenial libruby2.3 –  2.3.1-2~ubuntu16.04.16+esm1  
ruby2.3 –  2.3.1-2~ubuntu16.04.16+esm1  

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 ›