CVE-2021-28965
JSON

7.5high

REXML round-trip instability

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
4.45% (higher than 91% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-8cr8-4vfw-mr7hBIT-RUBY-2021-28965BIT-RUBY-MIN-2021-28965

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
rexml (RubyGems)before 3.2.5GitHub Advisory Database
ruby-lang rexmlbefore 3.2.5NVD
ruby-lang rubybefore 2.6.7, from 2.7.0 before 2.7.3, from 3.0.0 before 3.0.1NVD
fedoraproject fedora34NVD
ruby (Bitnami)before 2.6.7, from 2.7.0 before 2.7.3, from 3.0.0 before 3.0.1Bitnami Vulnerability Database
ruby-min (Bitnami)before 2.6.7, from 2.7.0 before 2.7.3, from 3.0.0 before 3.0.1Bitnami Vulnerability Database

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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.

NVD (es)

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. Puede ser producido un documento incorrecto después de analizarlo y serializarlo

References

https://www.ruby-lang.org/en/news/2021/04/05/xml-round-trip-vulnerability-in-rexml-cve-2021-28965/advisory, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WTVFTLFVCSUE5CXHINJEUCKSHU4SWDMT/vendor-advisory, web
https://security.netapp.com/advisory/ntap-20210528-0003/advisory, third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2021-28965advisory, web
https://github.com/ruby/rexml/commit/2fe62e29094d95921d7e19abbd2e26b23d78dc5bweb
https://github.com/ruby/rexml/commit/3c137eb119550874b2b3e27d12b733ca67033377web
https://github.com/ruby/rexml/commit/6a250d2cd1194c2be72becbdd9c3e770aa16e752web
https://github.com/ruby/rexml/commit/9b311e59ae05749e082eb6bbefa1cb620d1a786eweb
https://github.com/ruby/rexml/commit/a659c63e37414506dfb0d4655e031bb7a2e73fc8web
https://github.com/ruby/rexml/commit/f7bab8937513b1403cea5aff874cbf32fd5e8551web
https://github.com/ruby/rexml/commit/f9d88e4948b4a43294c25dc0edb16815bd9d8618web
https://hackerone.com/reports/1104077web

Sources

SourceRecordLicence
CVE ListCVE-2021-28965 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-8cr8-4vfw-mr7h changed 2025-01-27CC-BY-4.0
NVDCVE-2021-28965 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-RUBY-2021-28965 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-RUBY-MIN-2021-28965 changed 2026-09-08Apache-2.0