# CVE-2025-58767: REXML has DoS condition when parsing malformed XML file

Source: https://junglewise.ai/threats/cve-2025-58767-rexml-has-dos-condition-when-parsing-malformed-xml-file  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-09-17  
License: CC BY 4.0 with a link back

CVE-2025-58767 · Severity: medium · CVSS 4 · Published 2025-09-17

REXML has DoS condition when parsing malformed XML file

Technologies: [rexml (RubyGems)](https://junglewise.ai/threats/technologies/rubygems-rexml). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2025-58767 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-58767 being exploited in the wild.

**How severe is CVE-2025-58767?** Medium severity, with a CVSS score of 4, published 17 September 2025.

**Which products and versions are affected?** rexml (RubyGems) ECOSYSTEM:introduced=3.3.3,fixed=3.4.2.

**Is there a fix for CVE-2025-58767?** Yes. rexml (RubyGems): upgrade to 3.4.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-58767?** Check whether you run rexml (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- rexml (RubyGems): upgrade to 3.4.2 or later

  ```sh
  bundle update rexml
  ```


## Affected products

- rexml (RubyGems) ECOSYSTEM:introduced=3.3.3,fixed=3.4.2

## Identifiers

- CVE-2025-58767
- GHSA-c2f4-jgmc-q2r5

## Related threats

- [REXML ReDoS vulnerability](https://junglewise.ai/threats/cve-2024-49761-rexml-redos-vulnerability)
- [REXML denial of service vulnerability](https://junglewise.ai/threats/cve-2024-43398-rexml-denial-of-service-vulnerability)
- [REXML DoS vulnerability](https://junglewise.ai/threats/cve-2024-41946-rexml-dos-vulnerability)
- [REXML DoS vulnerability](https://junglewise.ai/threats/cve-2024-41123-rexml-dos-vulnerability)
- [REXML denial of service vulnerability](https://junglewise.ai/threats/cve-2024-39908-rexml-denial-of-service-vulnerability)
