Ruby REXML 3.3.3 < 3.4.2 DoS vulnerability

high Nessus Plugin ID 265895

Synopsis

The remote host has an application installed that is affected by a DoS vulnerability.

Description

The version of the REXML Ruby library installed on the remote host is 3.3.3 prior to 3.4.2. It is, therefore, affected by a DoS vulnerability as referenced in GHSA-c2f4-jgmc-q2r5 advisory.

- REXML is an XML toolkit for Ruby. The REXML gems from 3.3.3 to 3.4.1 has a DoS vulnerability when parsing XML containing multiple XML declarations. If you need to parse untrusted XMLs, you may be impacted to these vulnerabilities. The REXML gem 3.4.2 or later include the patches to fix these vulnerabilities.
(CVE-2025-58767)

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 REXML version 3.4.2 or later.

See Also

https://github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5

Plugin Details

Severity: High

ID: 265895

File Name: ruby_gem_rexml_GHSA-c2f4-jgmc-q2r5.nasl

Version: 1.2

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 9/25/2025

Updated: 9/26/2025

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 2.2

CVSS v2

Risk Factor: High

Base Score: 7.8

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

CVSS Score Source: CVE-2025-58767

CVSS v3

Risk Factor: High

Base Score: 7.5

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

Vulnerability Information

CPE: cpe:/a:ruby:rexml

Required KB Items: Host/ruby/modules/enumerated

Patch Publication Date: 9/17/2024

Vulnerability Publication Date: 9/17/2024

Reference Information

CVE: CVE-2025-58767

IAVB: 2025-B-0155