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.
Plugin Details
File Name: ruby_cve-2026-132825.nasl
Agent: windows, macosx, unix
Configuration: Enable thorough checks (optional)
Supported Sensors: Nessus Agent, Nessus
Risk Information
CVSS Score Rationale: Score based on analysis of the vendor advisory.
Vector: CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C
CVSS Score Source: manual
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