Skip to content
Fencer Vulns
medium 5.3

CVE-2025-58767 json

REXML has a DoS condition when parsing malformed XML file

published 2025-09-17 13 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-29746 , GHSA-c2f4-jgmc-q2r5

cvss
5.3
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 16%
public exploits
0
none known

Summary

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.

Patch / fix

  • rubygems rexml 3.4.2
  • ruby-lang rexml 3.4.2
  • ruby3.3 Debian 13 3.3.13-0+deb13u1

debian advisories DEBIAN-CVE-2025-58767

  • ruby RHEL 10.1 3.3.10-11.el10_1
  • rubygems RHEL 10.1 3.5.22-11.el10_1
  • ruby-libs RHEL 10.1 3.3.10-11.el10_1
  • rubygem-irb RHEL 10.1 1.13.1-11.el10_1
  • rubygem-rbs RHEL 10.1 3.4.0-11.el10_1
  • rubygem-rss RHEL 10.1 0.3.1-11.el10_1
  • rubygem-json RHEL 10.1 2.7.2-11.el10_1
  • rubygem-racc RHEL 10.1 1.7.3-11.el10_1

red hat advisories RHSA-2025:23141RHSA-2025:23062RHSA-2025:23063RHSA-2025:23927RHSA-2025:23648RHSA-2025:23140

  • ruby2.5 SLE Module for Basesystem 15 SP7 2.5.9-150700.24.6.1

suse advisories SUSE-SU-2026:1066-1

  • ruby3.4 openSUSE Leap 16.0 3.4.10-160000.1.1
  • ruby3.4 openSUSE Tumbleweed 3.4.8-1.1

opensuse advisories openSUSE-SU-2026:21878-1openSUSE-SU-2025:15828-1

  • rubygems AlmaLinux 10 3.5.22-11.el10_1
  • rubygem-irb AlmaLinux 10 1.13.1-11.el10_1
  • rubygem-rss AlmaLinux 10 0.3.1-11.el10_1
  • rubygem-rake AlmaLinux 10 13.1.0-11.el10_1
  • rubygem-rdoc AlmaLinux 10 6.6.3.1-11.el10_1
  • rubygem-rexml AlmaLinux 10 3.4.4-11.el10_1
  • rubygem-bundler AlmaLinux 10 2.5.22-11.el10_1
  • rubygem-minitest AlmaLinux 10 5.20.0-11.el10_1

almalinux advisories ALSA-2025:23141ALSA-2025:23062ALSA-2025:23063

  • ruby Rocky Linux 10 3.3.10-11.el10_1
  • ruby Rocky Linux 9 3.3.10-5.module+el9.7.0+40039+300ba1ed
  • rubygem-pg Rocky Linux 9 1.5.4-1.module+el9.7.0+40032+36e56d0d.0.1
  • rubygem-mysql2 Rocky Linux 9 0.5.5-3.module+el9.7.0+40032+36e56d0d
  • ruby Rocky Linux 8 3.3.10-5.module+el8.10.0+40038+e29e4152
  • rubygem-pg Rocky Linux 8 1.5.4-1.module+el8.10.0+1679+61871737
  • rubygem-pg Rocky Linux 8 1.5.4-1.module+el8.10.0+1827+16ecb9d2
  • rubygem-abrt Rocky Linux 8 0.4.0-1.module+el8.10.0+1827+16ecb9d2

rocky linux advisories RLSA-2025:23141RLSA-2025:23063RLSA-2025:23062

  • ruby-rexml Alpine 3.24, Alpine 3.23, Alpine 3.22 3.4.4-r0

alpine advisories ALPINE-CVE-2025-58767

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • ruby Azure Linux 3.0 3.3.5-6
  • rubygem-rexml Azure Linux 3.0 3.3.9-2

azure linux advisories AZL-67611AZL-67614

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-58767 updated cvss 5.3

rexml: REXML denial of service

  • Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/vector-rhel9, openshift-logging/fluentd-rhel9, openshift-logging/eventrouter-rhel9, openshift-logging/logging-view-plugin-rhel9, openshift-logging/cluster-logging-rhel9-operator, openshift-logging/log-file-metric-exporter-rhel9, +1 more Red Hat OpenShift Service Mesh 2 openshift-service-mesh/pilot-rhel8, openshift-service-mesh/grafana-rhel8, openshift-service-mesh/proxyv2-rhel9, openshift-service-mesh/istio-cni-rhel8, openshift-service-mesh/ratelimit-rhel8, openshift-service-mesh/istio-rhel8-operator, +2 more Red Hat 3scale API Management Platform 2 3scale-amp21/zync, 3scale-amp22/zync, 3scale-amp24/zync, 3scale-amp25/zync, 3scale-amp26/zync, 3scale-amp26/toolbox, +6 more Red Hat Enterprise Linux 8 pcs, pcs-snmp Red Hat Enterprise Linux 9 pcs, pcs-snmp Red Hat OpenShift Container Platform 4 openshift4/kubernetes-nmstate-rhel9-operator, openshift4/ose-kubernetes-nmstate-handler-rhel9
    +3 more products
    Red Hat OpenStack Platform 17.1 rhosp-rhel9/openstack-frr, rhosp-rhel9/openstack-base, rhosp-rhel9/openstack-cron, rhosp-rhel9/openstack-etcd, rhosp-rhel9/openstack-redis, rhosp-rhel9/openstack-iscsid, +98 more Red Hat Satellite 6 puppet-agent Red Hat Satellite Client puppet-agent
    affected: workaround, no fix available “The primary mitigation for this flaw is to avoid parsing XML documents originating from untrusted, unauthenticated, or unverified sources.”
  • Red Hat Enterprise Linux AppStream (v. 8) ruby 3.3.10-5.module+el8.10.0+23696+c42b0f57, rubygems 3.5.22-5.module+el8.10.0+23696+c42b0f57, ruby-libs 3.3.10-5.module+el8.10.0+23696+c42b0f57, rubygem-pg 1.5.4-1.module+el8.10.0+21226+b78a28c4, rubygem-rbs 3.4.0-5.module+el8.10.0+23696+c42b0f57, rubygem-rss 0.3.1-5.module+el8.10.0+23696+c42b0f57, +18 more
    fixed: vendor fix “The primary mitigation for this flaw is to avoid parsing XML documents originating from untrusted, unauthenticated, or unverified sources.” RHSA-2025:23062
  • Red Hat Enterprise Linux AppStream (v. 9) ruby 3.3.10-5.module+el9.7.0+23651+15dc1615, rubygems 3.5.22-5.module+el9.7.0+23651+15dc1615, ruby-libs 3.3.10-5.module+el9.7.0+23651+15dc1615, rubygem-pg 1.5.4-1.module+el9.4.0+21222+faeeed2f, rubygem-rbs 3.4.0-5.module+el9.7.0+23651+15dc1615, rubygem-rss 0.3.1-5.module+el9.7.0+23651+15dc1615, +17 more
    fixed: vendor fix “The primary mitigation for this flaw is to avoid parsing XML documents originating from untrusted, unauthenticated, or unverified sources.” RHSA-2025:23063
  • Red Hat Enterprise Linux AppStream (v. 10) ruby 3.3.10-11.el10_1, rubygems 3.5.22-11.el10_1, ruby-libs 3.3.10-11.el10_1, rubygem-rbs 3.4.0-11.el10_1, rubygem-rss 0.3.1-11.el10_1, rubygem-irb 1.13.1-11.el10_1, +15 more
    fixed: vendor fix “The primary mitigation for this flaw is to avoid parsing XML documents originating from untrusted, unauthenticated, or unverified sources.” RHSA-2025:23141
  • Red Hat Enterprise Linux AppStream EUS (v. 10.0) ruby 3.3.10-11.el10_0, rubygems 3.5.22-11.el10_0, ruby-libs 3.3.10-11.el10_0, rubygem-rbs 3.4.0-11.el10_0, rubygem-rss 0.3.1-11.el10_0, rubygem-irb 1.13.1-11.el10_0, +15 more
    fixed: vendor fix “The primary mitigation for this flaw is to avoid parsing XML documents originating from untrusted, unauthenticated, or unverified sources.” RHSA-2025:23927
  • Red Hat Enterprise Linux AppStream EUS (v.9.4) ruby 3.3.10-5.module+el9.4.0+23769+ab06e946, rubygems 3.5.22-5.module+el9.4.0+23769+ab06e946, ruby-libs 3.3.10-5.module+el9.4.0+23769+ab06e946, rubygem-pg 1.5.4-1.module+el9.4.0+21222+faeeed2f, rubygem-rbs 3.4.0-5.module+el9.4.0+23769+ab06e946, rubygem-rss 0.3.1-5.module+el9.4.0+23769+ab06e946, +17 more
    fixed: vendor fix “The primary mitigation for this flaw is to avoid parsing XML documents originating from untrusted, unauthenticated, or unverified sources.” RHSA-2025:23140
  • Red Hat Enterprise Linux AppStream EUS (v.9.6) ruby 3.3.10-5.module+el9.6.0+23780+e40d2335, rubygems 3.5.22-5.module+el9.6.0+23780+e40d2335, ruby-libs 3.3.10-5.module+el9.6.0+23780+e40d2335, rubygem-pg 1.5.4-1.module+el9.4.0+21222+faeeed2f, rubygem-rbs 3.4.0-5.module+el9.6.0+23780+e40d2335, rubygem-rss 0.3.1-5.module+el9.6.0+23780+e40d2335, +17 more
    fixed: vendor fix “The primary mitigation for this flaw is to avoid parsing XML documents originating from untrusted, unauthenticated, or unverified sources.” RHSA-2025:23648
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) ruby-doc 3.3.10-11.el10_1
    fixed: vendor fix “The primary mitigation for this flaw is to avoid parsing XML documents originating from untrusted, unauthenticated, or unverified sources.” RHSA-2025:23141
show 1 more
  • Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) ruby-doc 3.3.10-11.el10_0
    fixed: vendor fix “The primary mitigation for this flaw is to avoid parsing XML documents originating from untrusted, unauthenticated, or unverified sources.” RHSA-2025:23927

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
13 mo ago

Exploit prediction

0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 4.0 1.2 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
CNA 4.0 1.2 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

ecosystem package affected fixed in
rubygems rexml
>=3.3.3, <3.4.2
3.4.2

Affected products

  • ruby rexml

Classification

Weakness
  • CWE-400 Uncontrolled Resource Consumption
  • CWE-776 Improper Restriction of Recursive Entity References in DTDs

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.