{"id":"CVE-2025-58767","aliases":["CVE-2025-58767","GHSA-c2f4-jgmc-q2r5"],"related":[],"kind":"vulnerability","state":"published","title":"REXML has a DoS condition when parsing malformed XML file","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe REXML gems from 3.3.3 to 3.4.1 have a DoS vulnerability when parsing XML containing multiple XML declarations.\nIf you need to parse untrusted XMLs, you may be impacted to these vulnerabilities.\n\n### Patches\n\nREXML gems 3.4.2 or later include the patches to fix these vulnerabilities.\n\n### Workarounds\n\nDon't parse untrusted XMLs.\n\n### References\n\n* https://www.ruby-lang.org/en/news/2025/09/18/dos-rexml-cve-2025-58767/ : An announcement on www.ruby-lang.org","format":"markdown","source":"ghsa"},{"lang":"es","text":"REXML es un kit de herramientas XML para Ruby. Las gemas REXML de la 3.3.3 a la 3.4.1 tienen una vulnerabilidad de DoS al analizar XML que contiene múltiples declaraciones XML. Si necesita analizar XML no confiables, puede verse afectado por estas vulnerabilidades. La gema REXML 3.4.2 o posterior incluye los parches para corregir estas vulnerabilidades.","source":"nvd"}],"published":"2025-09-17T17:45:58.118Z","modified":"2026-09-10T03:50:28.180Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS: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","score":1.2,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS: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","score":1.2,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS: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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-776"],"affected":[{"ranges":[{"version":">= 3.3.3, < 3.4.2","status":"affected"}],"vendor":"ruby","product":"rexml","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.3.3","status":"affected","fixed":"3.4.2"}],"ecosystem":"RubyGems","package":"rexml","purl":"pkg:gem/rexml","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.3.3","fixed":"3.4.2"}],"vendor":"ruby-lang","product":"rexml","cpe":"cpe:2.3:a:ruby-lang:rexml:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58767","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rexml","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2025-58767.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://www.ruby-lang.org/en/news/2025/09/18/dos-rexml-cve-2025-58767","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-17T17:53:11.888Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-58767","url":"https://www.cve.org/CVERecord?id=CVE-2025-58767","licence":"CVE Terms of Use","modified":"2025-09-17T17:54:00.334Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c2f4-jgmc-q2r5","url":"https://github.com/advisories/GHSA-c2f4-jgmc-q2r5","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:28.180Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-58767","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58767","licence":"Public domain","modified":"2026-06-17T09:44:54.203Z"}],"updatedAt":"2026-11-25T22:59:04.793Z","epss":{"score":0.0025,"percentile":0.17501,"date":"2026-12-01T12:00:22.000Z"}}