Live threats

All CVEs / Ruby-lang

CVE-2021-28965Ruby-lang Rexml

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
4.4%
probability of exploitation in 30 days · percentile 92
Auth required
No
Published
Apr 21, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rexml.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems rexml < 3.2.5 3.2.5 gem "rexml", ">= 3.2.5"

Per OSV / GitHub Advisories (GHSA-8cr8-4vfw-mr7h). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ruby-langrexml< 3.2.5
ruby-langruby< 2.6.7
ruby-langruby≥ 2.7.0 < 2.7.3
ruby-langruby≥ 3.0.0 < 3.0.1
fedoraprojectfedora34

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.