CVE-2021-28965Ruby-lang Rexml
High 7.5 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Rexml We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Rexml.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | rexml | < 3.2.5 |
| ruby-lang | ruby | < 2.6.7 |
| ruby-lang | ruby | ≥ 2.7.0 < 2.7.3 |
| ruby-lang | ruby | ≥ 3.0.0 < 3.0.1 |
| fedoraproject | fedora | 34 |
Official advisories
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:8838 · Apr 21, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:7305 · Apr 21, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:7307 · Apr 21, 2026 Critical
- libruby4_0-4_0-4.0.0~preview2-1.1 on GA media · SUSE · openSUSE-SU-2025:15819-1 · Dec 12, 2025 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- lists.fedoraproject.org
- security.netapp.com Third Party Advisory
- www.ruby-lang.org Vendor Advisory