CVE-2024-39908
MEDIUM 4.3CVSS 3.1REXML denial of service vulnerability
REXML is an XML toolkit for Ruby. The REXML gem before 3.3.1 has some DoS vulnerabilities when it parses an XML that has many specific characters such as <, 0 and %>. If you need to parse untrusted XMLs, you many be impacted to these vulnerabilities. The REXML gem 3.3.2 or later include the patches to fix these vulnerabilities. Users are advised to upgrade. Users unable to upgrade should avoid parsing untrusted XML strings.
- Published
- 16 Jul 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-4xqq-m2hx-25v8
- Sources
- NVDJSONOSV GHSA-4xqq-m2hx-25v8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ruby-lang | rexmlcpe:2.3:a:ruby-lang:rexml:*:*:*:*:*:ruby:*:* |
< 3.3.2 | 3.3.2 |
| NVD | netapp | bootstrap_oscpe:2.3:o:netapp:bootstrap_os:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | RubyGems | rexml | < 3.3.2 | 3.3.2 |
References
- https://github.com/ruby/rexml/security/advisories/GHSA-4xqq-m2hx-25v8 · Vendor Advisory, WEB
- https://www.ruby-lang.org/en/news/2024/07/16/dos-rexml-cve-2024-39908 · Vendor Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2025/01/msg00011.html · WEB
- https://security.netapp.com/advisory/ntap-20250117-0008/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-39908 · ADVISORY
- https://github.com/ruby/rexml · PACKAGE
- https://github.com/ruby/rexml/releases/tag/v3.3.2 · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2024-39908.yml · WEB
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 16 Jul 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Jul 2024)