REXML has a DoS condition when parsing malformed XML file
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 8 fixed, 9 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ruby | rexml | 3.3.3 to before 3.4.2 | 3.4.2 | Patch available | CNA |
| — | rexml (RubyGems) | 3.3.3 to before 3.4.2 | 3.4.2 | Patch available | GHSA-c2f4-jgmc-q2r5 |
- rexml Vendorruby Affected 3.3.3 to before 3.4.2 Fixed in 3.4.2 Patch available CNA
- rexml (RubyGems) Vendor— Affected 3.3.3 to before 3.4.2 Fixed in 3.4.2 Patch available GHSA-c2f4-jgmc-q2r5
Remediation
- Fix · CNA rexml (ruby) Fixed in 3.4.2
- Fix · GHSA-c2f4-jgmc-q2r5 rexml (RubyGems) Fixed in 3.4.2 Advisory →
Red Hat 6 advisories
- RHSA-2025:23927 Released 2025-12-22 · Red Hat rating Moderateruby security update
- Red Hat Enterprise Linux AppStream EUS (v. 10.0) ruby-3.3.10-11.el10_0, ruby-bundled-gems-3.3.10-11.el10_0, ruby-default-gems-3.3.10-11.el10_0 +20
- Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) ruby-doc-3.3.10-11.el10_0
- RHSA-2025:23648 Released 2025-12-18 · Red Hat rating Moderateruby:3.3 security update
- Red Hat Enterprise Linux AppStream EUS (v.9.6) ruby-3.3.10-5.module+el9.6.0+23780+e40d2335.aarch64::ruby:3.3, ruby-3.3.10-5.module+el9.6.0+23780+e40d2335.i686::ruby:3.3, ruby-3.3.10-5.module+el9.6.0+23780+e40d2335.ppc64le::ruby:3.3 +47
- RHSA-2025:23141 Released 2025-12-11 · Red Hat rating Moderateruby security update
- Red Hat Enterprise Linux AppStream (v. 10) ruby-3.3.10-11.el10_1, ruby-bundled-gems-3.3.10-11.el10_1, ruby-default-gems-3.3.10-11.el10_1 +20
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) ruby-doc-3.3.10-11.el10_1
Show 3 more Red Hat advisories
- RHSA-2025:23140 Released 2025-12-11 · Red Hat rating Moderateruby:3.3 security update
- Red Hat Enterprise Linux AppStream EUS (v.9.4) ruby-3.3.10-5.module+el9.4.0+23769+ab06e946.aarch64::ruby:3.3, ruby-3.3.10-5.module+el9.4.0+23769+ab06e946.i686::ruby:3.3, ruby-3.3.10-5.module+el9.4.0+23769+ab06e946.ppc64le::ruby:3.3 +47
- RHSA-2025:23062 Released 2025-12-10 · Red Hat rating Moderateruby:3.3 security update
- Red Hat Enterprise Linux AppStream (v. 8) ruby-3.3.10-5.module+el8.10.0+23696+c42b0f57.aarch64::ruby:3.3, ruby-3.3.10-5.module+el8.10.0+23696+c42b0f57.i686::ruby:3.3, ruby-3.3.10-5.module+el8.10.0+23696+c42b0f57.ppc64le::ruby:3.3 +47
- RHSA-2025:23063 Released 2025-12-10 · Red Hat rating Moderateruby:3.3 security update
- Red Hat Enterprise Linux AppStream (v. 9) ruby-3.3.10-5.module+el9.7.0+23651+15dc1615.aarch64::ruby:3.3, ruby-3.3.10-5.module+el9.7.0+23651+15dc1615.i686::ruby:3.3, ruby-3.3.10-5.module+el9.7.0+23651+15dc1615.ppc64le::ruby:3.3 +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Logging Subsystem for Red Hat OpenShift | Affected | No fix yet: Fix deferred |
| OpenShift Service Mesh 2 | Affected | No fix yet: Fix deferred |
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 17.1 | Affected | No fix yet: Fix deferred |
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
| Red Hat Satellite Client | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2025:23141 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2025:23062 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2025:23063 |
| Red Hat Enterprise Linux AppStream EUS (v. 10.0) | Fixed | RHSA-2025:23927 |
| Red Hat Enterprise Linux AppStream EUS (v.9.4) | Fixed | RHSA-2025:23140 |
| Red Hat Enterprise Linux AppStream EUS (v.9.6) | Fixed | RHSA-2025:23648 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) | Fixed | RHSA-2025:23141 |
| Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) | Fixed | RHSA-2025:23927 |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-58767
- 2026-10-03 Alias added: GHSA-c2f4-jgmc-q2r5
References
Advisory 2
More ruby Rexml vulnerabilities
- TI-2024-27968 REXML DoS vulnerability CVSS 3.1HIGH 7.5
- TI-2024-27475 REXML DoS vulnerability CVSS 3.1HIGH 7.5
- TI-2021-09890 The REXML gem before 3.2.5 in Ruby before 2.6.7, 2.7.x before 2.7.3, and 3.x before 3.0.1… CVSS 3.1HIGH 7.5
- TI-2024-33228 REXML ReDoS vulnerability CVSS 4.0MEDIUM 6.6
- TI-2024-23250 REXML contains a denial of service vulnerability CVSS 3.1MEDIUM 5.3
- TI-2024-29047 REXML denial of service vulnerability CVSS 3.1MEDIUM 5.9
Sources
- CVE-2025-58767 · CVE Program
- CVE-2025-58767 · NVD
- FIRST EPSS
- GHSA-c2f4-jgmc-q2r5 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-58767 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences