{"id":"CVE-2021-28965","published":"2021-04-21T06:55:24Z","modified":"2024-08-03T21:55:12Z","title":"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 does not properly address…","vendor":null,"product":null,"tier":"tail","description":{"text":"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 does not properly address XML round-trip issues. An incorrect document can be produced after parsing and serializing.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.05061,"percentile":0.92512,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.ruby-lang.org/en/news/2021/04/05/xml-round-trip-vulnerability-in-rexml-cve-2021-28965/","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WTVFTLFVCSUE5CXHINJEUCKSHU4SWDMT/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0003/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.5,"factors":[{"name":"EPSS percentile","points":18.5}]},"affected":[{"ecosystem":"RubyGems","package":"rexml","vulnerableRanges":["<3.2.5"],"patched":["3.2.5"],"from":["GHSA-8cr8-4vfw-mr7h"],"provenance":"source"}],"summary":{"text":"The REXML gem in Ruby (versions before 3.2.5, and Ruby releases before 2.6.7, 2.7.x before 2.7.3, and 3.x before 3.0.1) fails to properly handle XML round-trip processing, so a document can be altered after being parsed and then serialized.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:09:55Z"},"euvd":{"id":"EUVD-2021-0797","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ruby-rexml-cve-2021-28965","children":[{"from":"CVE-2021-28965","to":"CVE-2024-35176","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/4325835f92f3f142ebd91a3fdba4e1f1ab7f1cfb"],"basis":"shared function","functions":["parse_attributes"]}]},{"from":"CVE-2021-28965","to":"CVE-2024-41946","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/033d1909a8f259d5a7c53681bcaf14f13bcf0368"],"basis":"shared function","functions":["pull_event"]}]},{"from":"CVE-2021-28965","to":"CVE-2024-43398","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/7cb5eaeb221c322b9912f724183294d8ce96bae3"],"basis":"shared function","functions":["parse_attributes"]}]},{"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"]}]}]}}