CVE-2024-43398
REXML denial of service vulnerability
Reported by github_m · Published August 22, 2024
rexml is fixed in 3.3.6 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rexml | RubyGems | 3.3.6 |
| ruby3.2-rexml | Chainguard | 3.3.6-r0 |
| ruby3.2-rubygem-bundler | Amazon Linux | 2.4.19-183.amzn2023.0.1 |
| ruby3.2-rubygem-rdoc | Amazon Linux | 6.5.1.1-183.amzn2023.0.1 |
| ruby3.2-rubygems | Amazon Linux | 3.4.19-183.amzn2023.0.1 |
| ruby3.1-fluentd-kubernetes-daemonset-1.17 | Chainguard | 1.17.1.1.2-r2 |
| ruby-3.2 | Chainguard | 3.2.5-r2 |
| ruby3.2-rubygem-minitest | Amazon Linux | 5.25.1-183.amzn2023.0.1 |
| ruby3.2-rubygem-power_assert | Amazon Linux | 2.0.3-183.amzn2023.0.1 |
| ruby3.2-rubygem-rbs | Amazon Linux | 2.8.2-183.amzn2023.0.1 |
| ruby-3.3 | Wolfi | 3.3.4-r3 |
| ruby3.2-rubygem-rexml | Amazon Linux | 3.3.9-183.amzn2023.0.1 |
6 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ruby | rexml | < 3.3.6 |
| chainguard | ruby3.2-rexml | 0 |
| amazon:2023 | ruby3.2-rubygem-bundler | 0 |
| amazon:2023 | ruby3.2-rubygem-rdoc | 0 |
| amazon:2023 | ruby3.2-rubygems | 0 |
| chainguard | ruby3.1-fluentd-kubernetes-daemonset-1.17 | 0 |
| chainguard | ruby-3.2 | 0 |
| amazon:2023 | ruby3.2-rubygem-minitest | 0 |
| amazon:2023 | ruby3.2-rubygem-power_assert | 0 |
| ruby-lang | rexml | |
| amazon:2023 | ruby3.2-rubygem-rbs | 0 |
| wolfi | ruby-3.3 | 0 |
| amazon:2023 | ruby3.2-rubygem-rexml | 0 |
| amazon:2023 | ruby3.2-rubygem-rss | 0 |
| amazon:2023 | ruby3.2 | 0 |
| chainguard | ruby3.4-fluentd-kubernetes-daemonset-1.16 | 0 |
| chainguard | ruby-3.1 | 0 |
| chainguard | logstash | 0 |
| wolfi | ruby3.1-fluentd-kubernetes-daemonset-1.17 | 0 |
| RubyGems | rexml | 0 |
…and 33 more
Timeline
- Aug 22, 2024 CVE Published
- Aug 23, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (15 in total, the first dated here)
- Feb 20, 2025 PoC Published (2 in total, the first dated here)
- Jan 6, 2026 Security Advisory (15 in total, the first dated here)
- Oct 11, 2026 Distribution Patch (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-43398
vulnetix vdb fixes CVE-2024-43398
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-43398/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/ruby/rexml/security/advisories/GHSA-vmwr-mc7x-5vc3 x_refsource_CONFIRM
- https://github.com/ruby/rexml/releases/tag/v3.3.6 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-43398 advisory
- https://github.com/advisories/GHSA-vmwr-mc7x-5vc3 advisory
- https://github.com/ruby/rexml/commit/7cb5eaeb221c322b9912f724183294d8ce96bae3 patch
- https://github.com/ruby/rexml url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2024-43398.yml advisory
- https://security.netapp.com/advisory/ntap-20250103-0006 advisory
- https://www.ruby-lang.org/en/news/2024/08/22/dos-rexml-cve-2024-43398 url
- https://security.netapp.com/advisory/ntap-20250103-0006/ url
- https://lists.debian.org/debian-lts-announce/2025/01/msg00011.html url