CentOS 9 : ruby-3.0.4-160.el9

critical Nessus Plugin ID 191346

Synopsis

The remote CentOS host is missing one or more security updates for ruby.

Description

The remote CentOS Linux 9 host has packages installed that are affected by multiple vulnerabilities as referenced in the ruby-3.0.4-160.el9 build changelog.

- A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2. If a victim attempts to create a Regexp from untrusted user input, an attacker may be able to write to unexpected memory locations. (CVE-2022-28738)

- There is a buffer over-read in Ruby before 2.6.10, 2.7.x before 2.7.6, 3.x before 3.0.4, and 3.1.x before 3.1.2. It occurs in String-to-Float conversion, including Kernel#Float and String#to_f. (CVE-2022-28739)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the CentOS 9 Stream ruby package.

See Also

https://kojihub.stream.centos.org/koji/buildinfo?buildID=24067

Plugin Details

Severity: Critical

ID: 191346

File Name: centos9_ruby-3_0_4-160.nasl

Version: 1.1

Type: local

Agent: unix

Published: 2/29/2024

Updated: 4/26/2024

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2022-28738

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:centos:centos:rubygem-typeprof, p-cpe:/a:centos:centos:rubygem-json, p-cpe:/a:centos:centos:rubygem-rexml, p-cpe:/a:centos:centos:ruby-default-gems, p-cpe:/a:centos:centos:rubygem-minitest, p-cpe:/a:centos:centos:rubygems-devel, p-cpe:/a:centos:centos:rubygem-irb, p-cpe:/a:centos:centos:ruby-doc, p-cpe:/a:centos:centos:rubygem-bundler, p-cpe:/a:centos:centos:rubygem-io-console, p-cpe:/a:centos:centos:rubygem-rss, cpe:/a:centos:centos:9, p-cpe:/a:centos:centos:rubygems, p-cpe:/a:centos:centos:rubygem-bigdecimal, p-cpe:/a:centos:centos:rubygem-power_assert, p-cpe:/a:centos:centos:rubygem-test-unit, p-cpe:/a:centos:centos:ruby, p-cpe:/a:centos:centos:rubygem-rbs, p-cpe:/a:centos:centos:rubygem-rake, p-cpe:/a:centos:centos:rubygem-psych, p-cpe:/a:centos:centos:rubygem-rdoc, p-cpe:/a:centos:centos:ruby-devel, p-cpe:/a:centos:centos:ruby-libs

Required KB Items: Host/local_checks_enabled, Host/CentOS/release, Host/CentOS/rpm-list, Host/cpu

Exploit Ease: No known exploits are available

Patch Publication Date: 8/3/2022

Vulnerability Publication Date: 4/13/2022

Reference Information

CVE: CVE-2022-28738, CVE-2022-28739