Vulnerabilities · 2025 · Ruby-lang
CVE-2025-58767
Ruby-lang Rexml vulnerability
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.
Affected products
Rexml. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Rexml runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5 · Vendor Advisory
- github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23 · Patch
- www.ruby-lang.org/en/news/2025/09/18/dos-rexml-cve-2025-58767
- nvd.nist.gov/vuln/detail/CVE-2025-58767
- github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2025-58767.yml
- github.com/advisories/GHSA-c2f4-jgmc-q2r5
- nvd.nist.gov/vuln/detail/CVE-2025-58767
- cve.org/CVERecord?id=CVE-2025-58767
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442CVE-2024-49761All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.