cve.bz

CVE-2025-58767 ruby-lang rexml: Uncontrolled Resource Consumption

1.2 lowEPSS 0.2%Fix available

Low (1.2) in ruby-lang rexml. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in rexml 3.4.2.

On this page
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.

Severity

CVSS 4.0

1.2 low
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

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 16th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-09-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-58767 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-58767?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-58767?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-58767 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ruby-lang:rexmlfrom 3.3.3 before 3.4.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c2f4-jgmc-q2r5RubyGemsrexml>=3.3.3 <3.4.23.4.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13ruby3.33.3.13-0+deb13u1DEBIAN-CVE-2025-58767 DSA-6614-1
Debian14ruby3.3no fix listedDEBIAN-CVE-2025-58767
Ubuntu22.04:LTSruby3.0no fix listedUBUNTU-CVE-2025-58767
Ubuntu24.04:LTSruby3.2no fix listedUBUNTU-CVE-2025-58767
Ubuntu25.10, 26.04:LTS, 26.10ruby3.3no fix listedUBUNTU-CVE-2025-58767
UbuntuPro:16.04:LTSruby2.3no fix listedUBUNTU-CVE-2025-58767
UbuntuPro:18.04:LTSruby2.5no fix listedUBUNTU-CVE-2025-58767
UbuntuPro:20.04:LTSruby2.7no fix listedUBUNTU-CVE-2025-58767
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.3.10-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21226+b78a28c4RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.5-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-bundler0:2.5.22-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.7.1-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-irb0:1.13.1-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-json, rubygem-json-debuginfo0:2.7.2-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-minitest0:5.20.0-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-mysql2, rubygem-mysql2-doc, rubygem-mysql2-debuginfo and 1 more0:0.5.5-1.module+el8.10.0+21226+b78a28c4RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-pg, rubygem-pg-doc, rubygem-pg-debuginfo and 1 more0:1.5.4-1.module+el8.10.0+21226+b78a28c4RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-power_assert0:2.0.3-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-psych, rubygem-psych-debuginfo0:5.1.2-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
105 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Basesystem 15 SP7ruby2.52.5.9-150700.24.6.1SUSE-SU-2026:1066-1
openSUSELeap 16.0ruby3.43.4.10-160000.1.1openSUSE-SU-2026:21878-1
openSUSETumbleweedruby3.43.4.8-1.1openSUSE-SU-2025:15828-1
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.3.10-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux8rubygem-bigdecimal3.1.5-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-bundler2.5.22-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-io-console0.7.1-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-irb1.13.1-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-json2.7.2-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-minitest5.20.0-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-mysql2, rubygem-mysql2-doc0.5.5-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux8rubygem-pg, rubygem-pg-doc1.5.4-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux8rubygem-power_assert2.0.3-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-psych5.1.2-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
41 more for AlmaLinux in the JSON.
Rocky Linux8ruby0:3.3.10-5.module+el8.10.0+40038+e29e4152RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1741+bdb5b6caRLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1820+f3fffb92RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1826+b62220b4RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.5.0+668+665814faRLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.9.0+1537+0b2034bdRLSA-2025:23062
Rocky Linux8rubygem-mysql20:0.5.5-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux8rubygem-mysql20:0.5.5-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
Rocky Linux8rubygem-pg0:1.5.4-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux8rubygem-pg0:1.5.4-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
4 more for Rocky Linux in the JSON.
Alpinev3.22, v3.23, v3.24ruby-rexml3.4.4-r0ALPINE-CVE-2025-58767
Azure Linux3ruby3.3.5-6AZL-67611
Azure Linux3rubygem-rexml3.3.9-2AZL-67614
Alpaquita25, streamruby-rexml3.4.4-r0BELL-CVE-2025-58767

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security team has rated this vulnerability as having the 'Moderate' severity, with the final CVSSv3.1 score of 5.3 as the final impact in availability is restricted to the application consuming the REXML package and not the whole system.

Red Hat's mitigation

The primary mitigation for this flaw is to avoid parsing XML documents originating from untrusted, unauthenticated, or unverified sources.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10ruby-0:3.3.10-11.el10_1Fixed 2025-12-11RHSA-2025:23141
Red Hat Enterprise Linux 10.0 Extended Update Supportruby-0:3.3.10-11.el10_0Fixed 2025-12-22RHSA-2025:23927
Red Hat Enterprise Linux 8ruby:3.3-8100020251124151715.489197e6Fixed 2025-12-10RHSA-2025:23062
Red Hat Enterprise Linux 9ruby:3.3-9070020251113101221.9Fixed 2025-12-10RHSA-2025:23063
Red Hat Enterprise Linux 9.4 Extended Update Supportruby:3.3-9040020251203142310.9Fixed 2025-12-11RHSA-2025:23140
Red Hat Enterprise Linux 9.6 Extended Update Supportruby:3.3-9060020251210162455.9Fixed 2025-12-18RHSA-2025:23648
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-operator-bundleFix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-rhel9-operatorFix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/eventrouter-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/log-file-metric-exporter-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/vector-rhel9Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/grafana-rhel8Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-cni-rhel8Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-must-gather-rhel9Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-operator-bundleFix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-rhel8-operatorFix deferred
OpenShift Service Mesh 2openshift-service-mesh/pilot-rhel8Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/proxyv2-rhel9Fix deferred
123 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-58767.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON