Ubuntu Security Notice 5462-1 - 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. It was discovered that Ruby incorrectly handled certain inputs. An attacker could possibly use this issue to expose sensitive information.
93396c53d1b014d262f3aed6dacbfc8d58faaea61e4dae6cbadc94a05bec397a
=========================================================================
Ubuntu Security Notice USN-5462-1
June 06, 2022
ruby2.5, ruby2.7, ruby3.0 vulnerabilities
=========================================================================
A security issue affects these releases of Ubuntu and its derivatives:
- Ubuntu 22.04 LTS
- Ubuntu 21.10
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
Summary:
Several security issues were fixed in Ruby.
Software Description:
- ruby3.0: Interpreter of object-oriented scripting language Ruby
- ruby2.7: Object-oriented scripting language
- ruby2.5: Object-oriented scripting language
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. (CVE-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:
The problem can be corrected by updating your system to the following
package versions:
Ubuntu 22.04 LTS:
libruby3.0 3.0.2-7ubuntu2.1
ruby3.0 3.0.2-7ubuntu2.1
Ubuntu 21.10:
libruby2.7 2.7.4-1ubuntu3.2
ruby2.7 2.7.4-1ubuntu3.2
Ubuntu 20.04 LTS:
libruby2.7 2.7.0-5ubuntu1.7
ruby2.7 2.7.0-5ubuntu1.7
Ubuntu 18.04 LTS:
libruby2.5 2.5.1-1ubuntu1.12
ruby2.5 2.5.1-1ubuntu1.12
In general, a standard system update will make all the necessary changes.
References:
https://ubuntu.com/security/notices/USN-5462-1
CVE-2022-28738, CVE-2022-28739
Package Information:
https://launchpad.net/ubuntu/+source/ruby3.0/3.0.2-7ubuntu2.1
https://launchpad.net/ubuntu/+source/ruby2.7/2.7.4-1ubuntu3.2
https://launchpad.net/ubuntu/+source/ruby2.7/2.7.0-5ubuntu1.7
https://launchpad.net/ubuntu/+source/ruby2.5/2.5.1-1ubuntu1.12