Skip to content

← Public intelligence

RubyGems package

rexml

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

8 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Low, CVSS 1.2RubyGemsPublished

    REXML has DoS condition when parsing malformed XML file

    CVE-2025-58767 · GHSA-c2f4-jgmc-q2r5

    Affected
    • RubyGems rexml >= 3.3.3, <= 3.4.1
    Fixed in
    3.4.2· Vendor fix available
    Issue
    Impact The REXML gems from 3.3.3 to 3.4.1 have a DoS vulnerability when parsing XML containing multiple XML declarations. If you need to parse untrusted XMLs, you may be impacted to these vulnerabilities. Patches REXML gems 3.4.2 or later include the patches to fix these vulnerabilities. Workarounds Don't parse untrusted XMLs. References https://www.ruby-lang.org/en/news/2025/09/18/dos-rexml-cve-2025-58767/ : An announcement on www.ruby-lang.org

    Recommended action: Upgrade to 3.4.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  2. Medium, CVSS 6.6RubyGemsPublished

    REXML ReDoS vulnerability

    CVE-2024-49761 · GHSA-2rxp-v6pw-ch6m

    Affected
    • RubyGems rexml < 3.3.9
    Fixed in
    3.3.9· Vendor fix available
    Issue
    Impact The REXML gem before 3.3.9 has a ReDoS vulnerability when it parses an XML that has many digits between & and x...; in a hex numeric character reference (&#x...;). This does not happen with Ruby 3.2 or later. Ruby 3.1 is the only affected maintained Ruby. Note that Ruby 3.1 will reach EOL on 2025-03. Patches The REXML gem 3.3.9 or later include the patch to fix the vulnerability. Workarounds Use Ruby 3.2 or later instead of Ruby 3.1. References https://www.ruby-lang.org/en/news/2024/10/28/redos-rexml-cve-2024-49761/: An announce on www.ruby-lang.org

    Recommended action: Upgrade to 3.3.9 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  3. High, CVSS 8.2RubyGemsPublished

    REXML denial of service vulnerability

    CVE-2024-43398 · GHSA-vmwr-mc7x-5vc3

    Affected
    • RubyGems rexml < 3.3.6
    Fixed in
    3.3.6· Vendor fix available
    Issue
    Impact The REXML gem before 3.3.6 has a DoS vulnerability when it parses an XML that has many deep elements that have same local name attributes. If you need to parse untrusted XMLs with tree parser API like REXML::Document.new, you may be impacted to this vulnerability. If you use other parser APIs such as stream parser API and SAX2 parser API, this vulnerability is not affected. Patches The REXML gem 3.3.6 or later include the patch to fix the vulnerability. Workarounds Don't parse untrusted XMLs with tree parser API. References https://www.ruby-lang.org/en/news/2024/08/22/dos-rexml-cve-2024-43398/ : An announce on www.ruby-lang.org

    Recommended action: Upgrade to 3.3.6 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  4. Medium, CVSS 6.9RubyGemsPublished

    REXML DoS vulnerability

    CVE-2024-41946 · GHSA-5866-49gr-22v4

    Affected
    • RubyGems rexml < 3.3.3
    Fixed in
    3.3.3· Vendor fix available
    Issue
    Impact The REXML gem before 3.3.2 has a DoS vulnerability when it parses an XML that has many entity expansions with SAX2 or pull parser API. If you need to parse untrusted XMLs with SAX2 or pull parser API, you may be impacted to this vulnerability. Patches The REXML gem 3.3.3 or later include the patch to fix the vulnerability. Workarounds Don't parse untrusted XMLs with SAX2 or pull parser API. References https://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/ : This is a similar vulnerability https://www.ruby-lang.org/en/news/2024/08/01/dos-rexml-cve-2024-41946/: An announce on www.ruby-lang.org

    Recommended action: Upgrade to 3.3.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  5. Medium, CVSS 6.9RubyGemsPublished

    REXML DoS vulnerability

    CVE-2024-41123 · GHSA-r55c-59qm-vjw6

    Affected
    • RubyGems rexml < 3.3.3
    Fixed in
    3.3.3· Vendor fix available
    Issue
    Impact The REXML gem before 3.3.2 has some DoS vulnerabilities when it parses an XML that has many specific characters such as whitespace character, ] and ]. If you need to parse untrusted XMLs, you may be impacted to these vulnerabilities. Patches The REXML gem 3.3.3 or later include the patches to fix these vulnerabilities. Workarounds Don't parse untrusted XMLs. References https://github.com/ruby/rexml/security/advisories/GHSA-vg3r-rm7w-2xgh : This is a similar vulnerability https://github.com/ruby/rexml/security/advisories/GHSA-4xqq-m2hx-25v8 : This is a similar vulnerability https://www.ruby-lang.org/en/news/2024/08/01/dos-rexml-cve-2024-41123/: An announce on www.ruby-lang.org

    Recommended action: Upgrade to 3.3.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  6. Medium, CVSS 6.9RubyGemsPublished

    REXML denial of service vulnerability

    CVE-2024-39908 · GHSA-4xqq-m2hx-25v8

    Affected
    • RubyGems rexml < 3.3.2
    Fixed in
    3.3.2· Vendor fix available
    Issue
    Impact The REXML gem before 3.3.1 has some DoS vulnerabilities when it parses an XML that has many specific characters such as <, 0 and %. If you need to parse untrusted XMLs, you may be impacted to these vulnerabilities. Patches The REXML gem 3.3.2 or later include the patches to fix these vulnerabilities. Workarounds Don't parse untrusted XMLs. References https://github.com/ruby/rexml/security/advisories/GHSA-vg3r-rm7w-2xgh : This is a similar vulnerability https://www.ruby-lang.org/en/news/2024/07/16/dos-rexml-cve-2024-39908/

    Recommended action: Upgrade to 3.3.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  7. Medium, CVSS 5.3RubyGemsPublished

    REXML contains a denial of service vulnerability

    CVE-2024-35176 · GHSA-vg3r-rm7w-2xgh

    Affected
    • RubyGems rexml < 3.2.7
    Fixed in
    3.2.7· Vendor fix available
    Issue
    Impact The REXML gem before 3.2.6 has a DoS vulnerability when it parses an XML that has many s in an attribute value. If you need to parse untrusted XMLs, you may be impacted to this vulnerability. Patches The REXML gem 3.2.7 or later include the patch to fix this vulnerability. Workarounds Don't parse untrusted XMLs. References https://www.ruby-lang.org/en/news/2024/05/16/dos-rexml-cve-2024-35176/

    Recommended action: Upgrade to 3.2.7 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  8. High, CVSS 7.5RubyGemsPublished

    REXML round-trip instability

    CVE-2021-28965 · GHSA-8cr8-4vfw-mr7h

    Affected
    • RubyGems rexml < 3.2.5
    Fixed in
    3.2.5· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 3.2.5 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →