CVE-2024-49761: REXML ReDoS vulnerability

Published 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

Other sources

Admin Framework. A logic issue was addressed with improved checks.

— Apple

Admin Framework. The issue was addressed with improved checks.

— Apple

App Store. A logging issue was addressed with improved data redaction.

— Apple

Apple Account. A privacy issue was addressed with improved checks.

— Apple

Apple Neural Engine. The issue was addressed with improved memory handling.

— Apple

Credit

Gergely Kalman@@gergely_kalman, Asaf Cohen, an anonymous researcher, Ron Masas(BreakPoint), Pinak Oza, Ryan Dowd@@_rdowd, Mickey Jin@@patch1t, Joseph Ravichandran@@0xjprx(MIT CSAIL), Dave G. (supernetworks.org), Zhongcheng Li(IES Red Team of ByteDance), JZ, Csaba Fitzl@@theevilbit(Kandji), Hikerell (Loadshine Lab), Duy Trần@@khanhduytran0, 이동하 (Lee Dong Ha(BoB 14th), wac(Trend Micro Zero Day Initiative), Wojciech Regula(SecuRing), Kirin@@Pwnrin(Fudan University), LFY@@secsys(Fudan University), Adwiteeya Agrawal, Hossein Lotfi@@hosselot(Trend Micro Zero Day Initiative), Kenneth Chew, Rodolphe Brunetti@@eisw0lf(Lupus Nova), Rodolphe BRUNETTI@@eisw0lf(Lupus Nova), @@EthanArbuckle, pattern-f@@pattern_F_, iisBuri, Ferdous Saljooki@@malwarezoo(Jamf), Cristian Dinca (icmd.tech), Murray Mike, Apple, Dave G.(supernetworks), Alex Radocea(supernetworks), Taavi Eomäe(Zone Media), Romain Lebesle(Khatima), Himanshu Bharti@@Xpl0itme(Khatima), Michael DePlante@@izobashi(Trend Micro Zero Day Initiative), BynarIO AI (bynar.io), Google Threat Analysis Group, Doug Hogan, Kirin@@Pwnrin, CVE-2024-43398, CVE-2024-49761, CVE-2025-6442, KPC(Cisco Talos), Nolan Astrein(Kandji), Morris Richman@@morrisinlife, Michael Reeves@@IntegralPilot, Atul R V, 이동하 (Lee Dong Ha)(SSA Lab)

Affected Software

32 affected componentsFixes available
rubygems/rexml<3.3.9
3.3.9
All of the following
ruby-lang Rexml Ruby<3.3.9
ruby-lang Ruby<3.2.0
NetApp Ontap Tools Vmware Vsphere=10
Microsoft azl3 ruby 3.3.5-3
Microsoft cbl2 rubygem-rexml 3.2.7-3
Microsoft cbl2 ruby 3.1.4-9
Microsoft azl3 rubygem-rexml 3.3.9-2
Microsoft cbl2 ruby 3.1.4-8
Microsoft azl3 rubygem-rexml 3.3.9-1
Microsoft azl3 ruby 3.3.5-1
Microsoft cbl2 rubygem-rexml 3.2.7-4
alpine/ruby-rexml<3.3.9-r0
3.3.9-r0
alpine/ruby-rexml<3.3.9-r0
3.3.9-r0
alpine/ruby-rexml<3.3.9-r0
3.3.9-r0
alpine/ruby-rexml<3.3.9-r0
3.3.9-r0
alpine/ruby-rexml<3.3.9-r0
3.3.9-r0
alpine/ruby-rexml<3.3.9-r0
3.3.9-r0
Apple macOS Tahoe<26.1
26.1
Apple macOS Sequoia<15.7.2
15.7.2
Apple macOS Sonoma<14.8.2
14.8.2
debian/ruby3.1<=3.1.2-7+deb12u1, <=3.1.7+really3.1.2-0+deb12u1
debian/ruby3.3
3.3.6-1
debian/ruby2.7
2.7.4-1+deb11u3
debian/ruby3.1*
debian/ruby3.3<3.3.6-1
3.3.6-1
debian/ruby3.3<3.3.6-1
3.3.6-1
ubuntu/ruby2.3<2.3.1-2~ubuntu16.04.16+esm10
2.3.1-2~ubuntu16.04.16+esm10
ubuntu/ruby2.5<2.5.1-1ubuntu1.16+esm4
2.5.1-1ubuntu1.16+esm4
ubuntu/ruby2.7<2.7.0-5ubuntu1.15
2.7.0-5ubuntu1.15
ubuntu/ruby3.0<3.0.2-7ubuntu2.8
3.0.2-7ubuntu2.8
ubuntu/ruby3.2<3.2.3-1ubuntu0.24.04.3
3.2.3-1ubuntu0.24.04.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/rexml to a version that resolves this vulnerability.

    Fixed in 3.3.9
  2. Upgrade

    Upgrade alpine/ruby-rexml to a version that resolves this vulnerability.

    Fixed in 3.3.9-r0
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 26.1
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 15.7.2
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.8.2
  6. Upgrade

    Upgrade debian/ruby3.3 to a version that resolves this vulnerability.

    Fixed in 3.3.6-1
  7. Upgrade

    Upgrade debian/ruby2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.4-1+deb11u3
  8. Upgrade

    Upgrade ubuntu/ruby2.3 to a version that resolves this vulnerability.

    Fixed in 2.3.1-2~ubuntu16.04.16+esm10
  9. Upgrade

    Upgrade ubuntu/ruby2.5 to a version that resolves this vulnerability.

    Fixed in 2.5.1-1ubuntu1.16+esm4
  10. Upgrade

    Upgrade ubuntu/ruby2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.0-5ubuntu1.15
  11. Upgrade

    Upgrade ubuntu/ruby3.0 to a version that resolves this vulnerability.

    Fixed in 3.0.2-7ubuntu2.8
  12. Upgrade

    Upgrade ubuntu/ruby3.2 to a version that resolves this vulnerability.

    Fixed in 3.2.3-1ubuntu0.24.04.3
  13. Upgrade

    Upgrade REXML gem to a version that resolves this vulnerability.

    Fixed in 3.3.9
  14. Upgrade

    Upgrade Ruby to a version that resolves this vulnerability.

    Fixed in 3.2

Event History

Oct 28, 2024
Advisory Published
via GitHub·02:10 PM
Data Sourced
via GitHub·02:10 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·02:10 PM
CVE Published
via MITRE·02:10 PM
Data Sourced
via MITRE·02:10 PM
DescriptionWeakness
Data Sourced
via OSV·02:10 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Nov 5, 2024
Data Sourced
via NVD·04:41 PM
RemedyAffected Software
Updated
via NVD·04:41 PM
Severity
Nov 12, 2024
Data Sourced
via Microsoft·12:00 AM
DescriptionSeverityWeaknessAffected Software
Dec 27, 2024
Updated
via NVD·04:15 PM
Affected Software
Dec 31, 2024
Updated
via Red Hat·09:51 AM
Severity
Mar 21, 2025
Updated
via NVD·04:37 PM
Affected Software
Event
via NVD·04:37 PM
Nov 3, 2025
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
Description
Updated
via NVD·09:16 PM
Affected Software
Updated
via GitHub·10:49 PM
Description
Dec 12, 2025
Updated
via Apple·12:00 AM
Description
Jan 28, 2026
Updated
via Apple·12:00 AM
Description
May 26, 2026
Updated
via Apple·12:00 AM
Description
Jun 10, 2026
Updated
via Apple·12:00 AM
Description
Jun 17, 2026
Updated
via NVD·08:00 AM
Affected Software
Jun 30, 2026
Updated
via Apple·12:00 AM
Description
Nov 21, 2026
Updated
via OSV·08:00 PM
Affected Software
Nov 22, 2026
Updated
via OSV·10:00 PM
Affected Software
Nov 24, 2026
Data Sourced
via OSV·02:54 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

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.

2

How do I fix CVE-2024-49761?

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

3

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.

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203