{"id":"CVE-2024-41946","aliases":["CVE-2024-41946","GHSA-5866-49gr-22v4"],"related":[],"kind":"vulnerability","state":"published","title":"REXML DoS vulnerability","summary":"REXML is an XML toolkit for Ruby. The REXML gem 3.3.2 has a DoS vulnerability when it parses an XML that has many entity expansions with SAX2 or pull parser API. The REXML gem 3.3.3 or later include the patch to fix the vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"REXML is an XML toolkit for Ruby. The REXML gem 3.3.2 has a DoS vulnerability when it parses an XML that has many entity expansions with SAX2 or pull parser API. The REXML gem 3.3.3 or later include the patch to fix the vulnerability.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe REXML gem before 3.3.2 has a DoS vulnerability when it parses an XML that has many entity expansions with SAX2 or pull parser API.\n\nIf you need to parse untrusted XMLs with SAX2 or pull parser API, you may be impacted to this vulnerability.\n\n### Patches\n\nThe REXML gem 3.3.3 or later include the patch to fix the vulnerability.\n\n### Workarounds\n\nDon't parse untrusted XMLs with SAX2 or pull parser API.\n\n### References\n\n* https://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/ : This is a similar vulnerability\n* https://www.ruby-lang.org/en/news/2024/08/01/dos-rexml-cve-2024-41946/: An announce on www.ruby-lang.org","format":"markdown","source":"ghsa"},{"lang":"es","text":"REXML es un conjunto de herramientas XML para Ruby. La gema REXML 3.3.2 tiene una vulnerabilidad DoS cuando analiza un XML que tiene muchas expansiones de entidad con SAX2 o API de analizador de extracción. La gema REXML 3.3.3 o posterior incluye el parche para corregir la vulnerabilidad.","source":"nvd"}],"published":"2024-08-01T14:22:14.014Z","modified":"2026-09-10T03:50:18.121Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":"< 3.3.3","status":"affected"}],"vendor":"ruby","product":"rexml","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"3.3.3","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.3"}],"ecosystem":"RubyGems","package":"rexml","purl":"pkg:gem/rexml","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.3.3"}],"vendor":"ruby-lang","product":"rexml","cpe":"cpe:2.3:a:ruby-lang:rexml:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ruby/rexml/security/advisories/GHSA-5866-49gr-22v4","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ruby/rexml/commit/033d1909a8f259d5a7c53681bcaf14f13bcf0368","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml","tags":["not-applicable","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.ruby-lang.org/en/news/2024/08/01/dos-rexml-cve-2024-41946","tags":["vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20250117-0007/","tags":[],"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-41946","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ruby/rexml","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2024-41946.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20250117-0007","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-08-01T15:45:10.507Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-41946","url":"https://www.cve.org/CVERecord?id=CVE-2024-41946","licence":"CVE Terms of Use","modified":"2025-11-03T20:38:34.071Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5866-49gr-22v4","url":"https://github.com/advisories/GHSA-5866-49gr-22v4","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:18.121Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-41946","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41946","licence":"Public domain","modified":"2026-06-17T07:48:30.390Z"}],"updatedAt":"2026-11-25T22:58:43.511Z","epss":{"score":0.01192,"percentile":0.68862,"date":"2026-12-01T12:00:22.000Z"}}