{"id":"CVE-2024-39908","aliases":["CVE-2024-39908","GHSA-4xqq-m2hx-25v8"],"related":["CVE-2024-41123"],"kind":"vulnerability","state":"published","title":"Denial of service in REXML","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe REXML gem before 3.3.1 has some DoS vulnerabilities when it parses an XML that has many specific characters such as `<`, `0` and `%>`.\n\nIf you need to parse untrusted XMLs, you may be impacted to these vulnerabilities.\n\n### Patches\n\nThe REXML gem 3.3.2 or later include the patches to fix these vulnerabilities.\n\n### Workarounds\n\nDon't parse untrusted XMLs.\n\n### References\n\n* https://github.com/ruby/rexml/security/advisories/GHSA-vg3r-rm7w-2xgh : This is a similar vulnerability\n* https://www.ruby-lang.org/en/news/2024/07/16/dos-rexml-cve-2024-39908/","format":"markdown","source":"ghsa"},{"lang":"es","text":"REXML es un conjunto de herramientas XML para Ruby. La gema REXML anterior a 3.3.1 tiene algunas vulnerabilidades DoS cuando analiza un XML que tiene muchos caracteres específicos como `&lt;`, `0` y `%&gt;`. Si necesita analizar archivos XML que no son de confianza, es posible que se vea afectado por estas vulnerabilidades. La gema REXML 3.3.2 o posterior incluye los parches para corregir estas vulnerabilidades. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben evitar analizar cadenas XML que no sean de confianza.","source":"nvd"}],"published":"2024-07-16T17:28:07.372Z","modified":"2026-09-10T03:50:16.309Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"< 3.3.2","status":"affected"}],"vendor":"ruby","product":"rexml","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"3.3.2","status":"affected"}],"vendor":"ruby-lang","product":"rexml","cpe":"cpe:2.3:a:ruby-lang:rexml:*:*:*:*:*:ruby:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3.2"}],"ecosystem":"RubyGems","package":"rexml","purl":"pkg:gem/rexml","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.3.2"}],"vendor":"ruby-lang","product":"rexml","cpe":"cpe:2.3:a:ruby-lang:rexml:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"bootstrap_os","cpe":"cpe:2.3:o:netapp:bootstrap_os:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ruby/rexml/security/advisories/GHSA-4xqq-m2hx-25v8","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.ruby-lang.org/en/news/2024/07/16/dos-rexml-cve-2024-39908","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20250117-0008/","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00011.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39908","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rexml","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rexml/releases/tag/v3.3.2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2024-39908.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20250117-0008","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-07-16T17:58:11.892Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39908","url":"https://www.cve.org/CVERecord?id=CVE-2024-39908","licence":"CVE Terms of Use","modified":"2025-11-03T20:38:21.548Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4xqq-m2hx-25v8","url":"https://github.com/advisories/GHSA-4xqq-m2hx-25v8","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:16.309Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39908","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39908","licence":"Public domain","modified":"2026-06-17T07:43:00.317Z"}],"updatedAt":"2026-11-25T22:58:42.959Z","epss":{"score":0.01493,"percentile":0.74903,"date":"2026-12-01T12:00:22.000Z"}}