7.5
CWE
1333
Advisory Published
CVE Published
Updated

CVE-2024-49761: REXML ReDoS vulnerability

First published: Mon Oct 28 2024(Updated: )

### 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

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
rubygems/rexml<3.3.9
3.3.9
REXML Ruby<3.3.9
debian/ruby2.7<=2.7.4-1+deb11u1
2.7.4-1+deb11u5
debian/ruby3.1<=3.1.2-7+deb12u1<=3.1.2-8.5
debian/ruby3.3<=3.3.7-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of CVE-2024-49761?

    CVE-2024-49761 is categorized as a ReDoS vulnerability which may lead to denial of service due to excessive resource consumption during XML parsing.

  • How do I fix CVE-2024-49761?

    To mitigate CVE-2024-49761, upgrade the REXML gem to version 3.3.9 or later.

  • Which versions of Ruby are affected by CVE-2024-49761?

    CVE-2024-49761 affects the REXML gem versions prior to 3.3.9, specifically impacting Ruby 3.1 and earlier.

  • Is CVE-2024-49761 present in Ruby 3.2 or later?

    No, CVE-2024-49761 is not present in Ruby 3.2 or later versions.

  • What is the impact of CVE-2024-49761 on applications using the REXML gem?

    CVE-2024-49761 can lead to a denial of service for applications that use the vulnerable REXML gem for XML parsing.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203