Ubuntu update for ruby2.5



Published: 2022-06-07 | Updated: 2022-07-20
Risk High
Patch available YES
Number of vulnerabilities 2
CVE-ID CVE-2022-28738
CVE-2022-28739
CWE-ID CWE-415
CWE-704
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Ubuntu
Operating systems & Components / Operating system

libruby2.7 (Ubuntu package)
Operating systems & Components / Operating system package or component

ruby2.7 (Ubuntu package)
Operating systems & Components / Operating system package or component

ruby2.5 (Ubuntu package)
Operating systems & Components / Operating system package or component

libruby2.5 (Ubuntu package)
Operating systems & Components / Operating system package or component

libruby3.0 (Ubuntu package)
/

ruby3.0 (Ubuntu package)
/

Vendor Canonical Ltd.

Security Bulletin

This security bulletin contains information about 2 vulnerabilities.

1) Double Free

EUVDB-ID: #VU62080

Risk: High

CVSSv3.1: 8.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-28738

CWE-ID: CWE-415 - Double Free

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in Regexp compilation process in Ruby. A remote attacker can pass specially crafted data to the application, trigger a double free error and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Update the affected package ruby2.5 to the latest version.

Vulnerable software versions

Ubuntu: 18.04 - 22.04

libruby2.7 (Ubuntu package): before 2.7.4-1ubuntu3.2

ruby2.7 (Ubuntu package): before 2.7.4-1ubuntu3.2

libruby3.0 (Ubuntu package): before 3.0.2-7ubuntu2.1

ruby3.0 (Ubuntu package): before 3.0.2-7ubuntu2.1

ruby2.5 (Ubuntu package): before 2.5.1-1ubuntu1.12

libruby2.5 (Ubuntu package): before 2.5.1-1ubuntu1.12

External links

http://ubuntu.com/security/notices/USN-5462-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Type conversion

EUVDB-ID: #VU62081

Risk: High

CVSSv3.1: 8.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-28739

CWE-ID: CWE-704 - Type conversion

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to a type conversion error in some convertion methods like Kernel#Float</code> and <code>String#to_f. A remote attacker can pass specially crafted data to the affected application, trigger memory corruption and execute arbitrary code in the system.

Mitigation

Update the affected package ruby2.5 to the latest version.

Vulnerable software versions

Ubuntu: 18.04 - 22.04

libruby2.7 (Ubuntu package): before 2.7.4-1ubuntu3.2

ruby2.7 (Ubuntu package): before 2.7.4-1ubuntu3.2

libruby3.0 (Ubuntu package): before 3.0.2-7ubuntu2.1

ruby3.0 (Ubuntu package): before 3.0.2-7ubuntu2.1

ruby2.5 (Ubuntu package): before 2.5.1-1ubuntu1.12

libruby2.5 (Ubuntu package): before 2.5.1-1ubuntu1.12

External links

http://ubuntu.com/security/notices/USN-5462-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###