Vulnerabilities · 2024 · Ruby-lang
CVE-2024-43398
Ruby-lang Rexml vulnerability
REXML is an XML toolkit for Ruby. 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. The REXML gem 3.3.6 or later include the patch to fix the vulnerability.
Affected products
Rexml, Bootstrap Os. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Rexml runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- security.netapp.com/advisory/ntap-20250103-0006/ · Third Party Advisory
- github.com/ruby/rexml/security/advisories/GHSA-vmwr-mc7x-5vc3
- nvd.nist.gov/vuln/detail/CVE-2024-43398
- github.com/ruby/rexml/commit/7cb5eaeb221c322b9912f724183294d8ce96bae3
- github.com/ruby/rexml/releases/tag/v3.3.6
- github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2024-43398.yml
- www.ruby-lang.org/en/news/2024/08/22/dos-rexml-cve-2024-43398
- security.netapp.com/advisory/ntap-20250103-0006
- nvd.nist.gov/vuln/detail/CVE-2024-43398
- cve.org/CVERecord?id=CVE-2024-43398
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.