CVE-2025-58767: REXML has a DoS condition when parsing malformed XML file
Vulnerability summary
CVE-2025-58767 is a medium (CVSS 5.3) Uncontrolled Resource Consumption vulnerability in ruby-lang rexml. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 17.4% of scored vulnerabilities.
Not severe (CVSS 1.2, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 11Timeline
- 17-09-2025PublishedVulnerability first disclosed.
- 17-09-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
11 scores · 9 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.1MediumCVSS: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:UDiffers
- OSV · WolfiEcosystem advisory · calculated5.1MediumCVSS: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:UDiffers
- OSV · ChainguardEcosystem advisory · calculated5.1MediumCVSS: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:UDiffers
- OSV · RubygemsEcosystem advisory · calculated5.1MediumCVSS: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:UDiffers
- NVDNIST1.2LowCVSS: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
- OSV · AlpineEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · Red hatEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.25%
Chance of exploitation in the next 30 days
Percentile
17%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.25% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard55 products
- gitlab-rails-ce-18.1All versions (No fix recorded)
- gitlab-rails-ce-18.2All versions (No fix recorded)
- gitlab-rails-ce-18.3< 18.3.2-r2
- gitlab-rails-ce-assets-18.3< 18.3.2-r2
- gitlab-rails-ce-assets-fips-18.3< 18.3.2-r1
Redhat42 products
- ruby< 0:3.3.10-5.module+el9.4.0+23769+ab06e946
- ruby-bundled-gems< 0:3.3.10-5.module+el9.4.0+23769+ab06e946
- ruby-bundled-gems-debuginfo< 0:3.3.10-5.module+el9.4.0+23769+ab06e946
- ruby-debuginfo< 0:3.3.10-5.module+el9.4.0+23769+ab06e946
- ruby-debugsource< 0:3.3.10-5.module+el9.4.0+23769+ab06e946
Wolfi7 products
- jruby-9.4< 9.4.15.0-r0
- kube-fluentd-operator< 1.18.2-r48
- kube-fluentd-operator-compat< 1.18.2-r48
- kube-fluentd-operator-default-config< 1.18.2-r48
- kube-fluentd-operator-oci-entrypoint< 1.18.2-r48
Ubuntu6 products
- ruby2.3All versions (No fix recorded)
- ruby2.5All versions (No fix recorded)
- ruby2.7All versions (No fix recorded)
- ruby3.0All versions (No fix recorded)
- ruby3.2All versions (No fix recorded)
Alpine1 product
- ruby-rexml≥ 3.3.3, < 3.4.4-r0
Debian1 product
- ruby3.3All versions (No fix recorded) | < 3.3.13-0+deb13u1 | < 3.3.14-0.1
Opensuse1 product
- ruby3.4&distro=openSUSE Tumbleweed< 3.4.8-1.1
Ruby1 product
- rexml≥ 3.3.3, < 3.4.2
Ruby-lang1 product
- rexml≥ 3.3.3, < 3.4.2
RubyGems1 product
- rexml≥ 3.3.3, < 3.4.2
10 vendors · 116 products
References
18 links- github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5X Refsource CONFIRMARTICLEREPORTAdvisoryWEBVendor Advisory
- github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23X Refsource MISCARTICLEFIXWEBPatch
Show all 18 references
- github.com/ruby/rexmlPACKAGE