{"id":"CVE-2021-28965","aliases":["CVE-2021-28965","GHSA-8cr8-4vfw-mr7h","BIT-RUBY-2021-28965","BIT-RUBY-MIN-2021-28965"],"related":[],"kind":"vulnerability","state":"published","title":"REXML round-trip instability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"El REXML gem versiones anteriores a 3.2.5 en Ruby versiones anteriores a 2.6.7, versiones 2.7.x anteriores a 2.7.3 y versiones 3.x anteriores a 3.0.1, no aborda apropiadamente los problemas round-trip de XML.&#xa0;Puede ser producido un documento incorrecto después de analizarlo y serializarlo","source":"nvd"}],"published":"2021-04-21T06:55:24.000Z","modified":"2026-09-08T08:48:19.309Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-115","CWE-611"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2.5"}],"ecosystem":"RubyGems","package":"rexml","purl":"pkg:gem/rexml","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.2.5"}],"vendor":"ruby-lang","product":"rexml","cpe":"cpe:2.3:a:ruby-lang:rexml:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"2.6.7"},{"status":"affected","introduced":"2.7.0","fixed":"2.7.3"},{"status":"affected","introduced":"3.0.0","fixed":"3.0.1"}],"vendor":"ruby-lang","product":"ruby","cpe":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.6.7"},{"type":"semver","introduced":"2.7.0","status":"affected","fixed":"2.7.3"},{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.1"}],"ecosystem":"Bitnami","package":"ruby","purl":"pkg:bitnami/ruby","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.6.7"},{"type":"semver","introduced":"2.7.0","status":"affected","fixed":"2.7.3"},{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.1"}],"ecosystem":"Bitnami","package":"ruby-min","purl":"pkg:bitnami/ruby-min","source":"bitnami"}],"references":[{"url":"https://www.ruby-lang.org/en/news/2021/04/05/xml-round-trip-vulnerability-in-rexml-cve-2021-28965/","tags":["advisory","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WTVFTLFVCSUE5CXHINJEUCKSHU4SWDMT/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0003/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28965","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/ruby/rexml/commit/2fe62e29094d95921d7e19abbd2e26b23d78dc5b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rexml/commit/3c137eb119550874b2b3e27d12b733ca67033377","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rexml/commit/6a250d2cd1194c2be72becbdd9c3e770aa16e752","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rexml/commit/9b311e59ae05749e082eb6bbefa1cb620d1a786e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rexml/commit/a659c63e37414506dfb0d4655e031bb7a2e73fc8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rexml/commit/f7bab8937513b1403cea5aff874cbf32fd5e8551","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rexml/commit/f9d88e4948b4a43294c25dc0edb16815bd9d8618","tags":["web"],"sources":["ghsa"]},{"url":"https://hackerone.com/reports/1104077","tags":["web"],"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-2021-28965.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WTVFTLFVCSUE5CXHINJEUCKSHU4SWDMT","tags":["web"],"sources":["ghsa"]},{"url":"https://rubygems.org/gems/rexml","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0003","tags":["web"],"sources":["ghsa"]},{"url":"https://www.ruby-lang.org/en/news/2021/04/05/xml-round-trip-vulnerability-in-rexml-cve-2021-28965","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28965","url":"https://www.cve.org/CVERecord?id=CVE-2021-28965","licence":"CVE Terms of Use","modified":"2024-08-03T21:55:12.192Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8cr8-4vfw-mr7h","url":"https://github.com/advisories/GHSA-8cr8-4vfw-mr7h","licence":"CC-BY-4.0","modified":"2025-01-27T08:58:46.059Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28965","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28965","licence":"Public domain","modified":"2026-06-17T03:47:05.853Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RUBY-2021-28965","url":"https://osv.dev/vulnerability/BIT-RUBY-2021-28965","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.309Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RUBY-MIN-2021-28965","url":"https://osv.dev/vulnerability/BIT-RUBY-MIN-2021-28965","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.262Z"}],"updatedAt":"2026-11-25T22:58:00.873Z","epss":{"score":0.04447,"percentile":0.91621,"date":"2026-12-01T12:00:22.000Z"}}