CVE-2024-35176
REXML contains a denial of service vulnerability
Reported by github_m · Published May 16, 2024
rexml is fixed in 3.2.7 (RubyGems)
REXML is an XML toolkit for Ruby. The REXML gem before 3.2.6 has a denial of service vulnerability when it parses an XML that has many `<`s in an attribute value. Those who need to parse untrusted XMLs may be impacted to this vulnerability. The REXML gem 3.2.7 or later include the patch to fix this vulnerability. As a workaround, don't parse untrusted XMLs.
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.2.7 |
| logstash-output-opensearch | Wolfi | 2.0.3-r2 |
| ruby3.2-rubygem-rake | Amazon Linux | 13.0.6-183.amzn2023.0.1 |
| logstash-jre-bcfips | Chainguard | 8.15.0-r0 |
| ruby-3.2 | Chainguard | 3.2.4-r4 |
| ruby3.2-rubygem-rdoc | Amazon Linux | 6.5.1.1-183.amzn2023.0.1 |
| ruby3.2-rubygem-power_assert | Amazon Linux | 2.0.3-183.amzn2023.0.1 |
| kube-fluentd-operator | Wolfi | 1.18.2-r11 |
| logstash | Wolfi | 8.15.0-r0 |
| ruby-3.3 | Wolfi | 3.3.2-r0 |
| ruby3.2-rubygems-devel | Amazon Linux | 3.4.19-183.amzn2023.0.1 |
| ruby3.2-rubygem-bundler | Amazon Linux | 2.4.19-183.amzn2023.0.1 |
24 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ruby | rexml | < 3.2.7 |
| wolfi | logstash-output-opensearch | 0 |
| amazon:2023 | ruby3.2-rubygem-rake | 0 |
| chainguard | logstash-jre-bcfips | 0 |
| chainguard | ruby-3.2 | 0 |
| RubyGems | rexml | 0 |
| amazon:2023 | ruby3.2-rubygem-rdoc | 0 |
| amazon:2023 | ruby3.2-rubygem-power_assert | 0 |
| wolfi | kube-fluentd-operator | 0 |
| wolfi | logstash | 0 |
| wolfi | ruby-3.3 | 0 |
| amazon:2023 | ruby3.2-rubygems-devel | 0 |
| amazon:2023 | ruby3.2-rubygem-bundler | 0 |
| amazon:2023 | ruby3.2-rubygem-json | 0 |
| chainguard | jruby-9.4 | 0 |
| amazon:2023 | ruby3.2-rubygem-rbs | 0 |
| amazon:2023 | ruby3.2-rubygem-rexml | 0 |
| amazon:2023 | ruby3.2-default-gems | 0 |
| wolfi | ruby-3.1 | 0 |
| amazon:2023 | ruby3.2-rubygem-minitest | 0 |
…and 24 more
Timeline
- May 16, 2024 CVE Published
- May 17, 2024 EPSS Score (30 in total, the first dated here)
- Aug 23, 2024 PoC Published
- Oct 4, 2024 Coalition ESS Score (19 in total, the first dated here)
- Jan 10, 2026 Security Advisory (8 in total, the first dated here)
- Oct 13, 2026 Distribution Patch (5 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-35176
vulnetix vdb fixes CVE-2024-35176
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-35176/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-vg3r-rm7w-2xgh x_refsource_CONFIRM
- https://github.com/ruby/rexml/commit/4325835f92f3f142ebd91a3fdba4e1f1ab7f1cfb x_refsource_MISC
- https://www.ruby-lang.org/en/news/2024/05/16/dos-rexml-cve-2024-35176 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-35176 advisory
- https://github.com/advisories/GHSA-vg3r-rm7w-2xgh advisory
- https://github.com/ruby/rexml url
- https://security.netapp.com/advisory/ntap-20250306-0001 advisory
- https://security.netapp.com/advisory/ntap-20250306-0001/ url
- https://lists.debian.org/debian-lts-announce/2025/01/msg00011.html url