{"id":"CVE-2025-58767","published":"2025-09-17T17:45:58Z","modified":"2025-09-17T17:54:00Z","title":"REXML has a DoS condition when parsing malformed XML file","vendor":"ruby","product":"rexml","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":1.2,"severity":"LOW","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00434,"percentile":0.29417,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23","tags":["x_refsource_MISC"]}],"priority":{"score":6.7,"factors":[{"name":"EPSS percentile","points":5.88},{"name":"CVSS severity","points":0.84}]},"vendorSlug":"ruby","affectedVersions":[{"vendor":"ruby","product":"rexml","versions":[">= 3.3.3, < 3.4.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-17T17:53:11.888636Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rexml","vulnerableRanges":[">=3.3.3, <3.4.2"],"patched":["3.4.2"],"from":["GHSA-c2f4-jgmc-q2r5"],"provenance":"source"}],"summary":{"text":"The REXML XML toolkit for Ruby, in the rexml gem, contains a denial-of-service flaw when parsing XML that includes multiple XML declarations, with affected versions from 3.3.3 through 3.4.1. An attacker who can supply XML for parsing can exhaust resources and disrupt the application, requiring only local access, no privileges, and no user interaction, and the exposure applies to applications that parse untrusted XML.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:59Z"},"euvd":{"id":"EUVD-2025-29746","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ruby-rexml-cve-2021-28965","parents":[{"from":"CVE-2021-28965","to":"CVE-2025-58767","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rexml/parsers/baseparser.rb"],"commits":["https://github.com/ruby/rexml/commit/2fe62e29094d95921d7e19abbd2e26b23d78dc5b","https://github.com/ruby/rexml/commit/3c137eb119550874b2b3e27d12b733ca67033377","https://github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23"],"basis":"shared function","functions":["parse_attributes","pull_event"]}]},{"from":"CVE-2024-35176","to":"CVE-2025-58767","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rexml/source.rb"],"commits":["https://github.com/ruby/rexml/commit/4325835f92f3f142ebd91a3fdba4e1f1ab7f1cfb","https://github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23"],"basis":"shared function","functions":["parse_attributes"]}]},{"from":"CVE-2024-41946","to":"CVE-2025-58767","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rexml/parsers/baseparser.rb"],"commits":["https://github.com/ruby/rexml/commit/033d1909a8f259d5a7c53681bcaf14f13bcf0368","https://github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23"],"basis":"shared function","functions":["initialize","pull_event"]}]},{"from":"CVE-2024-43398","to":"CVE-2025-58767","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rexml/parsers/baseparser.rb"],"commits":["https://github.com/ruby/rexml/commit/7cb5eaeb221c322b9912f724183294d8ce96bae3","https://github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23"],"basis":"shared function","functions":["parse_attributes"]}]}],"packageHistory":[{"cve":"CVE-2024-41946","published":"2024-08-01","fixed":"3.3.3","kev":false},{"cve":"CVE-2024-43398","published":"2024-08-22","fixed":"3.3.6","kev":false},{"cve":"CVE-2024-49761","published":"2024-10-28","fixed":"3.3.9","kev":false,"link":{"from":"CVE-2024-49761","to":"CVE-2025-58767","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rexml","fromFixed":"3.3.9","toFixed":"3.4.2","daysApart":324},{"kind":"same-code","provenance":"machine","files":["lib/rexml/parsers/baseparser.rb"],"commits":["https://github.com/ruby/rexml/commit/ce59f2eb1aeb371fe1643414f06618dbe031979f","https://github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23"],"basis":"shared file"}]}},{"cve":"CVE-2025-58767","published":"2025-09-17","fixed":"3.4.2","kev":false}],"package":"RubyGems:rexml"}}