Skip to content
OpenAdvisories

Description

REXML is an XML toolkit for Ruby. The REXML gem before 3.2.6 has a denial of service vulnerability when it parses an XML that has many `<`s in an attribute value. Those who need to parse untrusted XMLs may be impacted to this vulnerability. The REXML gem 3.2.7 or later include the patch to fix this vulnerability. As a workaround, don't parse untrusted XMLs.

Affected products

VendorProductAffectedFixed
ruby rexml < 3.2.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 ruby3.1 No fix yet —
Debian 11 ruby2.7 2.7.4-1+deb11u3 DLA-4018-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 jruby No fix yet —
Ubuntu 26.04 LTS jruby No fix yet —
Ubuntu 25.10 jruby No fix yet —
Ubuntu 24.04 LTS jruby No fix yet —
Ubuntu 24.04 LTS ruby3.2 3.2.3-1ubuntu0.24.04.5 USN-7734-1, USN-7418-1, USN-7091-1
Ubuntu 22.04 LTS ruby3.0 3.0.2-7ubuntu2.10 USN-7734-1, USN-7418-1, USN-7091-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS jruby No fix yet —
Ubuntu 20.04 LTS ruby2.7 2.7.0-5ubuntu1.16 USN-7418-1, USN-7091-2
Ubuntu 18.04 LTS jruby No fix yet —
Ubuntu 16.04 LTS jruby No fix yet —
Ubuntu Pro 20.04 LTS ruby2.7 2.7.0-5ubuntu1.18+esm1 USN-7840-1, USN-7734-1
Ubuntu Pro 18.04 LTS ruby2.5 2.5.1-1ubuntu1.16+esm5 USN-7840-1, USN-7734-1
Ubuntu Pro 16.04 LTS ruby2.3 2.3.1-2~ubuntu16.04.16+esm11 USN-7840-1
Ubuntu Pro 14.04 LTS jruby No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 pcs +1 0.10.18-2.el8_10.1 RHSA-2024:5338
RHEL 8 ruby +4 2.5.9-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-abrt +1 0.3.0-4.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-bigdecimal 1.3.4-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-bson +1 4.3.0-2.module+el8.9.0+19193+435404ae RHSA-2024:4499
RHEL 8 rubygem-bundler +1 1.16.1-4.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-did_you_mean 1.2.0-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-io-console 0.4.6-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-json 2.1.0-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-minitest 5.10.3-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-mongo +1 2.5.1-2.module+el8.9.0+19193+435404ae RHSA-2024:4499
RHEL 8 rubygem-mysql2 +1 0.4.10-4.module+el8.9.0+19193+435404ae RHSA-2024:4499
RHEL 8 rubygem-net-telnet 0.1.1-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-openssl 2.1.2-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-pg +1 1.0.0-3.module+el8.9.0+19193+435404ae RHSA-2024:4499
RHEL 8 rubygem-power_assert 1.1.1-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-psych 3.0.2-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-rake 12.3.3-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-rdoc 6.0.1.1-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-test-unit 3.2.7-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygem-xmlrpc 0.3.0-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499
RHEL 8 rubygems +1 2.7.6.3-112.module+el8.10.0+22021+135c76a8 RHSA-2024:4499

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 pcs +1 0.10.18-2.el8_10.1 ALSA-2024:5338
AlmaLinux 8 ruby +4 2.5.9-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-abrt +1 0.3.0-4.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-bigdecimal 1.3.4-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-bson 4.3.0-2.module_el8.5.0+259+8cec6917 ALSA-2024:4499
AlmaLinux 8 rubygem-bson-doc 4.3.0-2.module_el8.5.0+2625+ec418553 ALSA-2024:4499
AlmaLinux 8 rubygem-bundler +1 1.16.1-4.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-did_you_mean 1.2.0-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-io-console 0.4.6-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-json 2.1.0-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-minitest 5.10.3-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-mongo +1 2.5.1-2.module_el8.5.0+2625+ec418553 ALSA-2024:4499
AlmaLinux 8 rubygem-mysql2 0.4.10-4.module_el8.5.0+259+8cec6917 ALSA-2024:4499
AlmaLinux 8 rubygem-mysql2-doc 0.4.10-4.module_el8.5.0+2625+ec418553 ALSA-2024:4499
AlmaLinux 8 rubygem-net-telnet 0.1.1-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-openssl 2.1.2-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-pg +1 1.0.0-3.module_el8.9.0+3635+c6f99506 ALSA-2024:4499
AlmaLinux 8 rubygem-power_assert 1.1.1-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-psych 3.0.2-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-rake 12.3.3-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-rdoc 6.0.1.1-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-test-unit 3.2.7-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygem-xmlrpc 0.3.0-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499
AlmaLinux 8 rubygems +1 2.7.6.3-112.module_el8.10.0+3871+342e2c2f ALSA-2024:4499

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 pcs 0.10.18-2.el8_10.1 RLSA-2024:5338
Rocky Linux 8 ruby 2.5.9-112.module+el8.10.0+1839+f1f156ae RLSA-2024:4499
Rocky Linux 8 rubygem-abrt 0.3.0-4.module+el8.5.0+738+032c9c02 RLSA-2024:4499
Rocky Linux 8 rubygem-bson 4.3.0-2.module+el8.9.0+1536+5f79634e RLSA-2024:4499
Rocky Linux 8 rubygem-bundler 1.16.1-4.module+el8.9.0+1536+5f79634e RLSA-2024:4499
Rocky Linux 8 rubygem-mongo 2.5.1-2.module+el8.9.0+1536+5f79634e RLSA-2024:4499
Rocky Linux 8 rubygem-mysql2 0.4.10-4.module+el8.9.0+1536+5f79634e RLSA-2024:4499
Rocky Linux 8 rubygem-pg 1.0.0-3.module+el8.9.0+1536+5f79634e RLSA-2024:4499
ReleasePackageFixed inAdvisory
SLES 15 SP6 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
SLES 15 SP5 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
SLES 15 SP4 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
SLES 15 SP3 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
SLES 15 SP2 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
SLES for SAP 15 SP2 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
SLE HPC 15 SP4 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
SLE HPC 15 SP3 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
SLE HPC 15 SP2 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
SUSE Package Hub 15 SP6 rubygem-rexml 3.3.9-bp156.4.3.1 openSUSE-SU-2025:0129-1
SUSE Manager Server 4.3 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
SUSE Enterprise Storage 7.1 ruby2.5 2.5.9-150000.4.32.1 SUSE-SU-2024:3874-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 rubygem-rexml 3.3.9-bp156.4.3.1 openSUSE-SU-2025:0129-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 ruby3.2 +5 3.2.7-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-bigdecimal 3.1.3-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-bundler 2.4.19-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-io-console 0.6.0-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-irb 1.6.2-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-json 2.6.3-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-minitest 5.25.1-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-power_assert 2.0.3-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-psych 5.0.1-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-rake 13.0.6-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-rbs 2.8.2-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-rdoc 6.5.1.1-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-rexml 3.3.9-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-rss 0.3.1-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-test-unit 3.5.7-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygem-typeprof 0.21.3-183.amzn2023.0.1 ALAS2023-2025-921
Amazon Linux 2023 ruby3.2-rubygems +1 3.4.19-183.amzn2023.0.1 ALAS2023-2025-921

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 ruby 3.3.3-1 —
Azure Linux 3 rubygem-rexml 3.2.8-1 —
Azure Linux 2 (CBL-Mariner) ruby 3.1.4-6 —
Azure Linux 2 (CBL-Mariner) rubygem-rexml 3.2.7-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 pcs +1 0.10.18-2.0.1.el8_10.1 ELSA-2024-5338
Oracle Linux 8 ruby +4 2.5.9-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-abrt +1 0.3.0-4.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-bigdecimal 1.3.4-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-bson +1 4.3.0-2.module+el8.9.0+90042+a65659a6 ELSA-2024-4499
Oracle Linux 8 rubygem-bundler +1 1.16.1-4.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-did_you_mean 1.2.0-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-io-console 0.4.6-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-json 2.1.0-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-minitest 5.10.3-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-mongo +1 2.5.1-2.module+el8.9.0+90042+a65659a6 ELSA-2024-4499
Oracle Linux 8 rubygem-mysql2 +1 0.4.10-4.module+el8.9.0+90042+a65659a6 ELSA-2024-4499
Oracle Linux 8 rubygem-net-telnet 0.1.1-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-openssl 2.1.2-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-pg +1 1.0.0-3.module+el8.9.0+90042+a65659a6 ELSA-2024-4499
Oracle Linux 8 rubygem-power_assert 1.1.1-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-psych 3.0.2-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-rake 12.3.3-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-rdoc 6.0.1.1-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-test-unit 3.2.7-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygem-xmlrpc 0.3.0-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499
Oracle Linux 8 rubygems +1 2.7.6.3-112.module+el8.10.0+90367+ae9e8511 ELSA-2024-4499

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jruby-9.4 +1 9.4.8.0-r0 —
Wolfi rolling kube-fluentd-operator +3 1.18.2-r11 —
Wolfi rolling ruby-3.1 +1 3.1.6-r2 —
Wolfi rolling ruby-3.2 +2 3.2.4-r4 —
Wolfi rolling ruby-3.3 +4 3.3.2-r0 —
Wolfi rolling ruby3.2-rexml 3.2.8-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems rexml < 3.2.7 3.2.7 GHSA-vg3r-rm7w-2xgh

Advisories 19

References