CVE-2025-58767
Ruby vulnerability analysis and mitigation

Overview

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

Technical details

The vulnerability exists in REXML's XML parsing mechanism when processing XML files containing multiple XML declarations. The issue has been assigned a CVSS v4.0 score of 1.2 (LOW) with the vector string CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U. The vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption) (NVD).

Impact

When exploited, this vulnerability can lead to a Denial of Service condition when parsing untrusted XML files containing malformed XML declarations. The impact is primarily on applications that process untrusted XML input using affected versions of the REXML gem (GitHub Advisory).

Mitigation and workarounds

The primary mitigation is to upgrade to REXML version 3.4.2 or later, which includes patches to fix these vulnerabilities. As a temporary workaround, users are advised not to parse untrusted XML files. The fix includes implementation of XML declaration checks and improvements to the Source#skip_spaces method (GitHub Commit).

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-24293CRITICAL9.2
  • RubyRuby
  • activestorage
NoYesAug 14, 2025
CVE-2025-58067MEDIUM4.2
  • RubyRuby
  • google_sign_in
NoYesAug 29, 2025
CVE-2025-57821MEDIUM4.2
  • RubyRuby
  • google_sign_in
NoYesAug 27, 2025
CVE-2025-55193LOW2.7
  • RubyRuby
  • cpe:2.3:a:rubyonrails:rails
NoYesAug 13, 2025
CVE-2025-58767LOW1.2
  • RubyRuby
  • ruby:3.3::ruby-default-gems
NoYesSep 17, 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