CVE-2024-43398: REXML denial of service vulnerability

Published Aug 22, 2024
·
Updated

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

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.6
3.3.6
F5 BIG-IP Next SPK
F5 BIG-IP Next SPK>=1.7.0<=1.9.2
ruby-lang Rexml Ruby<3.3.6
All of the following
NetApp Bootstrap Os
NetApp Hci Compute Node
Microsoft azl3 ruby 3.3.3-2
Microsoft azl3 rubygem-rexml 3.3.9-1
Microsoft cbl2 ruby 3.1.4-9
Microsoft azl3 ruby 3.3.5-1
Microsoft azl3 rubygem-rexml 3.3.4-1
Microsoft cbl2 rubygem-rexml 3.2.9-1
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.5-1
debian/ruby2.7
2.7.4-1+deb11u3
debian/ruby3.1*
debian/ruby3.3<3.3.5-1
3.3.5-1
debian/ruby3.3<3.3.5-1
3.3.5-1
ubuntu/ruby2.3*
ubuntu/ruby2.5*
ubuntu/ruby2.7<2.7.0-5ubuntu1.16
2.7.0-5ubuntu1.16
ubuntu/ruby3.0<3.0.2-7ubuntu2.10
3.0.2-7ubuntu2.10
ubuntu/ruby3.2<3.2.3-1ubuntu0.24.04.5
3.2.3-1ubuntu0.24.04.5

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.6
  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.5-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.7 to a version that resolves this vulnerability.

    Fixed in 2.7.0-5ubuntu1.16
  9. Upgrade

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

    Fixed in 3.0.2-7ubuntu2.10
  10. Upgrade

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

    Fixed in 3.2.3-1ubuntu0.24.04.5
  11. Upgrade

    Upgrade REXML gem to a version that resolves this vulnerability.

    Fixed in 3.3.6
  12. Compensating control

    Do not parse untrusted XML with the tree parser API, such as REXML::Document.new; use a stream parser or SAX2 parser API if parsing is required.

Event History

Aug 22, 2024
CVE Published
via MITRE·02:14 PM
Data Sourced
via MITRE·02:14 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·03:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·03:21 PM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·04:40 PM
Data Sourced
via GitHub·04:40 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·04:40 PM
Aug 28, 2024
Updated
via GitHub·08:08 PM
Description
Dec 19, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Jun 6, 2025
Advisory Published
via F5·08:25 PM
Data Sourced
via F5·08:25 PM
DescriptionSeverityWeaknessAffected Software
Sep 19, 2025
Data Sourced
via NVD·03:51 PM
Affected Software
Nov 3, 2025
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
Description
Updated
via GitHub·10:47 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 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

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-43398?

CVE-2024-43398 has a severity rating of moderate, primarily due to its potential to cause a denial of service.

2

How do I fix CVE-2024-43398?

To fix CVE-2024-43398, upgrade the REXML gem to version 3.3.6 or later.

3

What is the impact of CVE-2024-43398?

CVE-2024-43398 can lead to a denial of service when parsing deeply nested XML with similar local name attributes.

4

Which versions of REXML are affected by CVE-2024-43398?

REXML gem versions prior to 3.3.6 are affected by CVE-2024-43398.

5

Can I use REXML for parsing untrusted XML data with CVE-2024-43398?

It is not recommended to use REXML for parsing untrusted XML data due to the risk posed by CVE-2024-43398.

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