
CVE catalog
CVE-2024-39908
Ruby vulnerabilities
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.49% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby3.1 | bookworm | 3.1.2-7+deb12u1 | vulnerable |
| Debian | ruby3.1 | bookworm-security | 3.1.2-7+deb12u1 | vulnerable |
| Ubuntu | ruby3.1 | noble | Not reported | vulnerable |
| Ubuntu | ruby3.2 | noble | 3.2.3-1ubuntu0.24.04.5 | fixed |
| Ubuntu | libruby3.2 | noble | 3.2.3-1ubuntu0.24.04.5 | fixed |
| Ubuntu | ruby3.2-dev | noble | 3.2.3-1ubuntu0.24.04.5 | fixed |
| Ubuntu | ruby3.2-doc | noble | 3.2.3-1ubuntu0.24.04.5 | fixed |
| Ubuntu | ruby3.2 | noble | 3.2.3-1ubuntu0.24.04.3 | fixed |
| Ubuntu | libruby3.2 | noble | 3.2.3-1ubuntu0.24.04.3 | fixed |
| Ubuntu | ruby3.2-dev | noble | 3.2.3-1ubuntu0.24.04.3 | fixed |
| Ubuntu | ruby3.2-doc | noble | 3.2.3-1ubuntu0.24.04.3 | fixed |
| Alpine | ruby-rexml | 3.19 | 3.3.9-r0 | fixed |
| Alpine | ruby-rexml | 3.20 | 3.3.9-r0 | fixed |
| Alpine | ruby-rexml | 3.21 | 3.3.9-r0 | fixed |
| Alpine | ruby-rexml | 3.22 | 3.3.9-r0 | fixed |
| Alpine | ruby-rexml | 3.23 | 3.3.9-r0 | fixed |
| Alpine | ruby-rexml | 3.24 | 3.3.9-r0 | fixed |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-2 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-3 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-4 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-4ubuntu1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.1 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.2 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.3 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.4 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.5 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.6 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.7 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.8 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.9 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.10 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.11 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.12 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.13 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.14 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.15 | vulnerable |
| Ubuntu | ruby2.7 | 20.04 | 2.7.0-5ubuntu1.16 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby3.1 | source | bookworm | (unfixed) | not yet assigned | Not reported | [1076768] |
| Ubuntu | ruby3.2 | deb | noble | 3.2.3-1ubuntu0.24.04.5 | Not reported | Not reported | Not reported |
| Ubuntu | libruby3.2 | deb | noble | 3.2.3-1ubuntu0.24.04.5 | Not reported | Not reported | Not reported |
| Ubuntu | ruby3.2-dev | deb | noble | 3.2.3-1ubuntu0.24.04.5 | Not reported | Not reported | Not reported |
| Ubuntu | ruby3.2-doc | deb | noble | 3.2.3-1ubuntu0.24.04.5 | Not reported | Not reported | Not reported |
| Ubuntu | ruby3.2 | deb | noble | 3.2.3-1ubuntu0.24.04.3 | Not reported | Not reported | Not reported |
| Ubuntu | libruby3.2 | deb | noble | 3.2.3-1ubuntu0.24.04.3 | Not reported | Not reported | Not reported |
| Ubuntu | ruby3.2-dev | deb | noble | 3.2.3-1ubuntu0.24.04.3 | Not reported | Not reported | Not reported |
| Ubuntu | ruby3.2-doc | deb | noble | 3.2.3-1ubuntu0.24.04.3 | Not reported | Not reported | Not reported |
| Alpine | ruby-rexml | apk | 3.19 | 3.3.9-r0 | Not reported | ALPINE-CVE-2024-39908 | Not reported |
| Alpine | ruby-rexml | apk | 3.20 | 3.3.9-r0 | Not reported | ALPINE-CVE-2024-39908 | Not reported |
| Alpine | ruby-rexml | apk | 3.21 | 3.3.9-r0 | Not reported | ALPINE-CVE-2024-39908 | Not reported |
| Alpine | ruby-rexml | apk | 3.22 | 3.3.9-r0 | Not reported | ALPINE-CVE-2024-39908 | Not reported |
| Alpine | ruby-rexml | apk | 3.23 | 3.3.9-r0 | Not reported | ALPINE-CVE-2024-39908 | Not reported |
| Alpine | ruby-rexml | apk | 3.24 | 3.3.9-r0 | Not reported | ALPINE-CVE-2024-39908 | Not reported |
| Ubuntu | ruby2.7 | deb | 20.04 | 2.7.0-5ubuntu1.16 | Not reported | USN-7256-1 | Not reported |
Notes
[bookworm] ruby3.1: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libruby3.1]Affected
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
- [ruby3.1]Affected
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
- [ruby3.1-dev]Affected
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
- [ruby3.1-doc]Affected
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· all · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
[Debian 13 (Trixie)]
- [libruby3.3]Fixed
Source package: [ruby3.3]
Details (2)
3.3.8-2· amd64 · trixieFixed · Fixed:
3.3.5-1usn · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieFixed · Fixed:
3.3.5-1usn · ruby3.3 · debian · 13
- [ruby3.3]Fixed
Details (2)
3.3.8-2· amd64 · trixieFixed · Fixed:
3.3.5-1usn · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieFixed · Fixed:
3.3.5-1usn · ruby3.3 · debian · 13
- [ruby3.3-dev]Fixed
Source package: [ruby3.3]
Details (2)
3.3.8-2· amd64 · trixieFixed · Fixed:
3.3.5-1usn · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieFixed · Fixed:
3.3.5-1usn · ruby3.3 · debian · 13
- [ruby3.3-doc]Fixed
Source package: [ruby3.3]
Details (2)
3.3.8-2· all · trixieFixed · Fixed:
3.3.5-1usn · ruby3.3 · debian · 13
3.3.8-2· all · trixieFixed · Fixed:
3.3.5-1usn · ruby3.3 · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2025_4063.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2024-39908]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-39908]
- [https://osv.dev/vulnerability/USN-7256-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-39908]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-39908.json]
- [https://ubuntu.com/security/notices/USN-7091-1]
- [https://ubuntu.com/security/notices/USN-7418-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2451.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]