USN-6838-1: Ruby vulnerabilities

Publication date

17 June 2024

Overview

Several security issues were fixed in Ruby.


Packages

  • ruby2.7 - Object-oriented scripting language
  • ruby3.0 - Object-oriented scripting language
  • ruby3.1 - Object-oriented scripting language
  • ruby3.2 - Object-oriented scripting language

Details

It was discovered that Ruby RDoc incorrectly parsed certain YAML files. If
a user or automated system were tricked into parsing a specially crafted
.rdoc_options file, a remote attacker could possibly use this issue to
execute arbitrary code. (CVE-2024-27281)

It was discovered that the Ruby regex compiler incorrectly handled certain
memory operations. A remote attacker could possibly use this issue to
obtain sensitive memory contents. (CVE-2024-27282)

It was discovered that Ruby RDoc incorrectly parsed certain YAML files. If
a user or automated system were tricked into parsing a specially crafted
.rdoc_options file, a remote attacker could possibly use this issue to
execute arbitrary code. (CVE-2024-27281)

It was discovered that the Ruby regex compiler incorrectly handled certain
memory operations. A remote attacker could possibly use this issue to
obtain sensitive memory contents. (CVE-2024-27282)

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
24.04 noble libruby3.2 –  3.2.3-1ubuntu0.24.04.1
ruby3.2 –  3.2.3-1ubuntu0.24.04.1
23.10 mantic libruby3.1 –  3.1.2-7ubuntu3.2
ruby3.1 –  3.1.2-7ubuntu3.2
22.04 jammy libruby3.0 –  3.0.2-7ubuntu2.6
ruby3.0 –  3.0.2-7ubuntu2.6
20.04 focal libruby2.7 –  2.7.0-5ubuntu1.13
ruby2.7 –  2.7.0-5ubuntu1.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 ›