Ruby < 3.3.14 / 3.4.x < 3.4.13 / 4.0.x < 4.0.10 Multiple Vulnerabilities

high Nessus Plugin ID 383389

Synopsis

An interpreter installed on the remote host is affected by multiple vulnerabilities.

Description

The version of Ruby installed on the remote host is prior to 3.3.14, or 3.4.x prior to 3.4.13, or 4.0.x prior to 4.0.10. It is, therefore, affected by multiple vulnerabilities in the regular expression engine and in the case conversion of strings.

- Ruby before 3.3.14, 3.4.13, and 4.0.10 has a heap-based buffer overflow during case conversion. One byte can be written outside a buffer for, for example, ISO-8859-1 or Windows-1252. (CVE-2026-132825, GHSA-34m4-m9fh-gqp5)

- Ruby has a double free in its regular expression engine. Compiling a crafted regular expression pattern may allow remote code execution in applications that compile attacker-controlled patterns.
(GHSA-7x2q-68qv-6p8x)

- Ruby has an integer overflow in the case conversion of strings, which causes a heap-based buffer overflow.
Changing the case of a crafted string may allow remote code execution. (GHSA-87fm-7w84-j2px)

- Ruby has an out-of-bounds read in its regular expression engine. Matching against a crafted regular expression pattern may allow remote code execution in applications that use attacker-controlled patterns.
(GHSA-wpqw-5qxg-m68r)

- Ruby has an integer overflow in its regular expression engine, which causes a heap-based buffer overflow.
Compiling a crafted regular expression pattern may allow remote code execution in applications that compile attacker-controlled patterns. (GHSA-3p8q-wmhx-vm2w)

- Ruby has a heap-based buffer overflow in Regexp#to_s. Converting a crafted regular expression to a string may allow information disclosure or remote code execution in applications that compile attacker-controlled patterns. (GHSA-7whj-cfh7-xgm4)

- Ruby has an out-of-bounds read in its regular expression engine. Matching a crafted string may disclose memory contents or crash the process. (GHSA-pvgc-g7gj-pv6h)

CVE identifiers have been requested for the issues above that do not yet have one, so the vendor advisory refers to them by their GitHub Security Advisory (GHSA) identifiers. Note that Ruby 3.2 and earlier have reached end of life and will not receive these fixes.

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

Solution

Upgrade to Ruby version 3.3.14 / 3.4.13 / 4.0.10 or later. Ruby 3.2 and earlier are end of life and will not receive a fix, so affected hosts must be migrated to a supported release.

See Also

https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5

https://github.com/ruby/ruby/security/advisories/GHSA-3p8q-wmhx-vm2w

https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4

https://github.com/ruby/ruby/security/advisories/GHSA-7x2q-68qv-6p8x

https://github.com/ruby/ruby/security/advisories/GHSA-87fm-7w84-j2px

https://github.com/ruby/ruby/security/advisories/GHSA-pvgc-g7gj-pv6h

https://github.com/ruby/ruby/security/advisories/GHSA-wpqw-5qxg-m68r

https://www.aikido.dev/blog/ruby2shell

http://www.nessus.org/u?b4d02162

Plugin Details

Severity: High

ID: 383389

File Name: ruby_cve-2026-132825.nasl

Version: 1.1

Type: Local

Agent: windows, macosx, unix

Family: Misc.

Published: 11/19/2026

Updated: 11/19/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

CVSS Score Rationale: Score based on analysis of the vendor advisory.

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.81

CVSS v2

Risk Factor: High

Base Score: 9.3

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

CVSS Score Source: manual

CVSS v3

Risk Factor: High

Base Score: 8.8

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

Vulnerability Information

CPE: cpe:/a:ruby-lang:ruby

Required KB Items: installed_sw/Ruby

Patch Publication Date: 11/18/2026

Vulnerability Publication Date: 11/18/2026

Reference Information

CVE: CVE-2026-132825

CWE: 122, 125, 190, 193, 415, 787