{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-28965","id":"CVE-2021-28965","title":"REXML round-trip instability","description":"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.","descriptionLong":"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.","published":"2021-04-21T06:55:24.000Z","updated":"2026-10-24T10:30:36.462263384Z","reserved":"2021-03-22T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"rexml","purl":"pkg:gem/rexml","ranges":["<3.2.5"],"fixed":["3.2.5"],"advisory":"GHSA-8cr8-4vfw-mr7h"}],"cwes":["CWE-115","CWE-611"],"aliases":["BIT-ruby-2021-28965","BIT-ruby-min-2021-28965","GHSA-8cr8-4vfw-mr7h"],"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","x_transferred","Vendor Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WTVFTLFVCSUE5CXHINJEUCKSHU4SWDMT/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0003/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28965","tags":["advisory"]},{"url":"https://github.com/ruby/rexml/commit/2fe62e29094d95921d7e19abbd2e26b23d78dc5b","tags":["web"]},{"url":"https://github.com/ruby/rexml/commit/3c137eb119550874b2b3e27d12b733ca67033377","tags":["web"]},{"url":"https://github.com/ruby/rexml/commit/6a250d2cd1194c2be72becbdd9c3e770aa16e752","tags":["web"]},{"url":"https://github.com/ruby/rexml/commit/9b311e59ae05749e082eb6bbefa1cb620d1a786e","tags":["web"]},{"url":"https://github.com/ruby/rexml/commit/a659c63e37414506dfb0d4655e031bb7a2e73fc8","tags":["web"]},{"url":"https://github.com/ruby/rexml/commit/f7bab8937513b1403cea5aff874cbf32fd5e8551","tags":["web"]},{"url":"https://github.com/ruby/rexml/commit/f9d88e4948b4a43294c25dc0edb16815bd9d8618","tags":["web"]},{"url":"https://hackerone.com/reports/1104077","tags":["web"]},{"url":"https://github.com/ruby/rexml","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2021-28965.yml","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WTVFTLFVCSUE5CXHINJEUCKSHU4SWDMT","tags":["web"]},{"url":"https://rubygems.org/gems/rexml","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0003","tags":["web"]},{"url":"https://www.ruby-lang.org/en/news/2021/04/05/xml-round-trip-vulnerability-in-rexml-cve-2021-28965","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.05061,"epssPercentile":0.92488,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-28965","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28965","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-28965","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8cr8-4vfw-mr7h","ok":true,"note":"GHSA-8cr8-4vfw-mr7h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-28965","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}