cve.bz

CVE-2021-28965

7.5 highEPSS 5.1%Fix available

High (7.5). EPSS 5.1% estimated probability of exploitation activity in the next 30 days. Fixed in rexml 3.2.5.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
5.1% (unchanged from 5.1% a week ago; 5.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-28965 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-28965?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-28965?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-28965 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ruby-lang:rexmlbefore 3.2.5
ruby-lang:rubybefore 2.6.7
ruby-lang:rubyfrom 2.7.0 before 2.7.3
ruby-lang:rubyfrom 3.0.0 before 3.0.1
fedoraproject:fedora34

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8cr8-4vfw-mr7hRubyGemsrexml<3.2.53.2.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10ruby2.52.5.5-3+deb10u4DSA-5066-1
Debian11ruby2.72.7.3-1DEBIAN-CVE-2021-28965
Ubuntu16.04:LTSruby2.32.3.1-2~ubuntu16.04.16UBUNTU-CVE-2021-28965 USN-4922-1
Ubuntu18.04:LTSruby2.52.5.1-1ubuntu1.9UBUNTU-CVE-2021-28965 USN-4922-1
Ubuntu20.04:LTSruby2.72.7.0-5ubuntu1.4UBUNTU-CVE-2021-28965 USN-4922-1
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-irb and 5 more0:2.5.9-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2587
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 5 more0:2.7.3-136.module+el8.4.0+10728+4c884998RHSA-2021:2584
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 4 more0:2.6.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.1.0+3656+f80bfa1dRHSA-2021:2587
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.3.0+7192+4e3a532aRHSA-2021:2584
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.3.4-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2587
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.4.1-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:2.0.0-136.module+el8.4.0+10728+4c884998RHSA-2021:2584
Red Hatenterprise_linux:8::appstreamrubygem-bson, rubygem-bson-doc, rubygem-bson-debuginfo and 1 more0:4.3.0-2.module+el8.1.0+3656+f80bfa1dRHSA-2021:2587
Red Hatenterprise_linux:8::appstreamrubygem-bson, rubygem-bson-doc, rubygem-bson-debuginfo and 1 more0:4.5.0-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hatenterprise_linux:8::appstreamrubygem-bson, rubygem-bson-doc, rubygem-bson-debuginfo and 1 more0:4.8.1-1.module+el8.3.0+7192+4e3a532aRHSA-2021:2584
149 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2ruby2.52.5.9-4.17.1SUSE-SU-2021:1280-1
openSUSELeap 15.2ruby2.52.5.9-lp152.2.6.1openSUSE-SU-2021:0607-1
openSUSETumbleweedruby2.72.7.3-3.2openSUSE-SU-2024:11310-1
openSUSETumbleweedruby3.03.0.1-3.2openSUSE-SU-2024:11311-1
openSUSETumbleweedruby3.13.1.0-1.1openSUSE-SU-2024:11786-1
openSUSETumbleweedruby3.23.2.1-1.1openSUSE-SU-2024:12712-1
openSUSETumbleweedruby3.33.3.0-1.2openSUSE-SU-2024:13623-1
openSUSETumbleweedruby3.43.4.1-1.1openSUSE-SU-2025:14621-1
openSUSETumbleweedruby4.04.0.0~preview2-1.1openSUSE-SU-2025:15819-1
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+259+8cec6917ALSA-2021:2587 ALSA-2021:2588
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+2623+08a8ba32ALSA-2021:2587 ALSA-2021:2588
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+2625+ec418553ALSA-2021:2587
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.3.0+6147+d0dfc1e4ALSA-2021:2584
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.4.0+2399+4e3a532aALSA-2021:2584
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.5.0+118+1ab773e1ALSA-2021:2584
AlmaLinux8rubygem-bson4.8.1-1.module_el8.4.0+2399+4e3a532aALSA-2021:2584
AlmaLinux8rubygem-bson4.8.1-1.module_el8.5.0+117+35d1289bALSA-2021:2584
AlmaLinux8rubygem-bson, rubygem-bson-doc4.3.0-2.module_el8.5.0+259+8cec6917ALSA-2021:2587
AlmaLinux8rubygem-bson, rubygem-bson-doc4.3.0-2.module_el8.5.0+2625+ec418553ALSA-2021:2587
AlmaLinux8rubygem-bson, rubygem-bson-doc4.5.0-1.module_el8.5.0+250+ba22dbf7ALSA-2021:2588
AlmaLinux8rubygem-bson, rubygem-bson-doc4.5.0-1.module_el8.5.0+2623+08a8ba32ALSA-2021:2588
20 more for AlmaLinux in the JSON.
Rocky Linux8ruby0:2.5.9-107.module+el8.4.0+592+03ff458aRLSA-2021:2587
Rocky Linux8ruby0:2.6.7-107.module+el8.4.0+593+8d7f9f0cRLSA-2021:2588
Rocky Linux8ruby0:2.7.3-136.module+el8.4.0+594+11b6673aRLSA-2021:2584
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.3.0+167+5c390590RLSA-2021:2587 RLSA-2021:2588
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.4.0+592+03ff458aRLSA-2021:2587 RLSA-2021:2588
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.5.0+738+032c9c02RLSA-2021:2587 RLSA-2021:2588
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.4.0+411+b946f28cRLSA-2021:2584
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.4.0+594+11b6673aRLSA-2021:2584
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.5.0+668+665814faRLSA-2021:2584
Rocky Linux8rubygem-bson0:4.3.0-2.module+el8.3.0+167+5c390590RLSA-2021:2587
Rocky Linux8rubygem-bson0:4.3.0-2.module+el8.4.0+592+03ff458aRLSA-2021:2587
Rocky Linux8rubygem-bson0:4.5.0-1.module+el8.4.0+446+80b53620RLSA-2021:2588
28 more for Rocky Linux in the JSON.
Alpinev3.10ruby2.5.9-r0ALPINE-CVE-2021-28965
Alpinev3.11ruby2.6.7-r0ALPINE-CVE-2021-28965
Alpinev3.12, v3.13, v3.14 and 10 moreruby2.7.3-r0ALPINE-CVE-2021-28965
Azure Linux2ruby2.7.4-1AZL-6860

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ruby:2.7-8040020210421133318.522a0ee4Fixed 2021-06-29RHSA-2021:2584
Red Hat Enterprise Linux 8ruby:2.5-8040020200923213910.522a0ee4Fixed 2021-06-29RHSA-2021:2587
Red Hat Enterprise Linux 8ruby:2.6-8040020210430142949.522a0ee4Fixed 2021-06-29RHSA-2021:2588
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsruby:2.6-8010020220201152941.c27ad7f8Fixed 2022-02-21RHSA-2022:0581
Red Hat Enterprise Linux 8.2 Extended Update Supportruby:2.6-8020020220201131207.4cda2c84Fixed 2022-02-21RHSA-2022:0582
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby25-ruby-0:2.5.9-9.el7Fixed 2021-05-26RHSA-2021:2104
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby27-ruby-0:2.7.3-129.el7Fixed 2021-06-03RHSA-2021:2229
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby26-ruby-0:2.6.7-119.el7Fixed 2021-06-03RHSA-2021:2230
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-ruby25-ruby-0:2.5.9-9.el7Fixed 2021-05-26RHSA-2021:2104
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-ruby25-ruby-0:2.5.9-9.el7Fixed 2021-05-26RHSA-2021:2104
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-ruby27-ruby-0:2.7.3-129.el7Fixed 2021-06-03RHSA-2021:2229
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-ruby26-ruby-0:2.6.7-119.el7Fixed 2021-06-03RHSA-2021:2230
Red Hat Hardened Imagesruby3-3-main-3.3.10-23.1.hum1Fixed 2026-04-09RHSA-2026:7305
Red Hat Hardened Imagesruby3-4-main-3.4.8-31.1.hum1Fixed 2026-04-09RHSA-2026:7307
CloudForms Management Engine 5rubyNot affected
Red Hat Enterprise Linux 6rubyOut of support scope
Red Hat Enterprise Linux 7rubyOut of support scope
Red Hat Enterprise Linux 9rubyNot affected
Red Hat Hardened ImagesrubyAffected
Red Hat Software Collectionsrh-ruby30-rubyAffected
1 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-28965.

References

Check your stackJSON