CVE-2025-58767 REXML has a DoS condition when parsing malformed XML file
Attackers can cause denial of service in applications using REXML by parsing malformed XML with multiple declarations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-58767?
CVE-2025-58767 is a low-severity denial of service vulnerability in ruby rexml, published on 17 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-400
Which versions are affected by CVE-2025-58767?
2 open source packages ship an affected version, including rexml. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
rexml RubyGems | From 3.3.3 | 3.4.2 |
rexml RubyGems | From 3.3.3 | 3.4.2 |
Linux distribution packages (38)
ruby Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.3.10-5.module+el9.4.0+23769+ab06e946 |
ruby-bundled-gems Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.3.10-5.module+el9.4.0+23769+ab06e946 |
ruby-bundled-gems-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.3.10-5.module+el9.4.0+23769+ab06e946 |
ruby-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.3.10-5.module+el9.4.0+23769+ab06e946 |
ruby-debugsource Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.3.10-5.module+el9.4.0+23769+ab06e946 |
ruby-default-gems Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.3.10-5.module+el9.4.0+23769+ab06e946 |
ruby-devel Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.3.10-5.module+el9.4.0+23769+ab06e946 |
ruby-doc Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.3.10-5.module+el9.4.0+23769+ab06e946 |
ruby-libs Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.3.10-5.module+el9.4.0+23769+ab06e946 |
ruby-libs-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.3.10-5.module+el9.4.0+23769+ab06e946 |
rubygem-bigdecimal Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.1.5-5.module+el9.4.0+23769+ab06e946 |
rubygem-bigdecimal-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.1.5-5.module+el9.4.0+23769+ab06e946 |
rubygem-bundler Red Hat:rhel_eus:9.4::appstream | All versions | 0:2.5.22-5.module+el9.4.0+23769+ab06e946 |
rubygem-io-console Red Hat:rhel_eus:9.4::appstream | All versions | 0:0.7.1-5.module+el9.4.0+23769+ab06e946 |
rubygem-io-console-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:0.7.1-5.module+el9.4.0+23769+ab06e946 |
rubygem-irb Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.13.1-5.module+el9.4.0+23769+ab06e946 |
rubygem-json Red Hat:rhel_eus:9.4::appstream | All versions | 0:2.7.2-5.module+el9.4.0+23769+ab06e946 |
rubygem-json-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:2.7.2-5.module+el9.4.0+23769+ab06e946 |
rubygem-minitest Red Hat:rhel_eus:9.4::appstream | All versions | 0:5.20.0-5.module+el9.4.0+23769+ab06e946 |
rubygem-mysql2 Red Hat:rhel_eus:9.4::appstream | All versions | 0:0.5.5-1.module+el9.4.0+21222+faeeed2f |
rubygem-mysql2-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:0.5.5-1.module+el9.4.0+21222+faeeed2f |
rubygem-mysql2-debugsource Red Hat:rhel_eus:9.4::appstream | All versions | 0:0.5.5-1.module+el9.4.0+21222+faeeed2f |
rubygem-mysql2-doc Red Hat:rhel_eus:9.4::appstream | All versions | 0:0.5.5-1.module+el9.4.0+21222+faeeed2f |
rubygem-pg Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.5.4-1.module+el9.4.0+21222+faeeed2f |
rubygem-pg-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.5.4-1.module+el9.4.0+21222+faeeed2f |
rubygem-pg-debugsource Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.5.4-1.module+el9.4.0+21222+faeeed2f |
rubygem-pg-doc Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.5.4-1.module+el9.4.0+21222+faeeed2f |
rubygem-power_assert Red Hat:rhel_eus:9.4::appstream | All versions | 0:2.0.3-5.module+el9.4.0+23769+ab06e946 |
rubygem-psych Red Hat:rhel_eus:9.4::appstream | All versions | 0:5.1.2-5.module+el9.4.0+23769+ab06e946 |
rubygem-psych-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:5.1.2-5.module+el9.4.0+23769+ab06e946 |
rubygem-racc Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.7.3-5.module+el9.4.0+23769+ab06e946 |
rubygem-racc-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.7.3-5.module+el9.4.0+23769+ab06e946 |
rubygem-rake Red Hat:rhel_eus:9.4::appstream | All versions | 0:13.1.0-5.module+el9.4.0+23769+ab06e946 |
rubygem-rbs Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.4.0-5.module+el9.4.0+23769+ab06e946 |
rubygem-rbs-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.4.0-5.module+el9.4.0+23769+ab06e946 |
rubygem-rdoc Red Hat:rhel_eus:9.4::appstream | All versions | 0:6.6.3.1-5.module+el9.4.0+23769+ab06e946 |
rubygem-rexml Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.4.4-5.module+el9.4.0+23769+ab06e946 |
rubygem-rss Red Hat:rhel_eus:9.4::appstream | All versions | 0:0.3.1-5.module+el9.4.0+23769+ab06e946 |
Products include Ruby-Lang Rexml.
How do I fix CVE-2025-58767?
Upgrade rexml to 3.4.2 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-58767 being exploited?
There is no known exploitation of CVE-2025-58767 in the wild and no public exploit code.
Other vulnerabilities in ruby rexml
Sources
Also known as ALPINE-CVE-2025-58767, AZL-67611, AZL-67614, BELL-CVE-2025-58767, CLEANSTART-2026-LE84583, CLEANSTART-2026-SZ82695 and 26 more.