CVE-2025-58767
Ruby vulnerability analysis and mitigation

Overview

REXML, an XML toolkit for Ruby, was found to contain a Denial of Service (DoS) vulnerability in versions 3.3.3 to 3.4.1. The vulnerability was discovered and disclosed on September 17, 2025, and was assigned CVE-2025-58767. The vulnerability affects the XML parsing functionality when handling multiple XML declarations (NVD, GitHub Advisory).

Technical details

The vulnerability exists in the XML parsing mechanism when handling XML declarations. The issue specifically occurs when parsing XML files containing multiple XML declarations, which can lead to a Denial of Service condition. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L. The vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption) (NVD).

Impact

The primary impact of this vulnerability is the potential for Denial of Service attacks when parsing untrusted XML files. When exploited, the vulnerability can affect the availability of applications using the REXML gem to parse XML content (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in REXML version 3.4.2. Users are advised to upgrade to this version or later to address the vulnerability. As a temporary workaround, users should avoid parsing untrusted XML content if immediate upgrading is not possible (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
CVE-2025-61594MEDIUMN/A
  • RubyRuby
  • rubygem-json
NoYesDec 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management