{"id":"CVE-2013-1821","aliases":["CVE-2013-1821","GHSA-hgg7-cghq-xhf4"],"related":[],"kind":"vulnerability","state":"published","title":"Ruby vulnerable to denial of service","summary":"lib/rexml/text.rb in the REXML parser in Ruby before 1.9.3-p392 allows remote attackers to cause a denial of service (memory consumption and crash) via crafted text nodes in an XML document, aka an XML Entity Expansion (XEE) attack.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"lib/rexml/text.rb in the REXML parser in Ruby before 1.9.3-p392 allows remote attackers to cause a denial of service (memory consumption and crash) via crafted text nodes in an XML document, aka an XML Entity Expansion (XEE) attack.","source":"cvelist"},{"lang":"en","text":"When reading text nodes from an XML document, the REXML parser can be coerced in to allocating extremely large string objects which can consume all of the memory on a machine, causing a denial of service.\n\nJruby resolves this bug in version 1.7.3 as noted in https://www.jruby.org/2013/02/21/jruby-1-7-3.html","format":"markdown","source":"ghsa"},{"lang":"es","text":"lib/rexml/text.rb en el analizador REXML en Ruby anterior a 1.9.3-p392, permite a atacantes remotos provocar una denegación de servicio (consumo de memoria o caída  de la aplicación) a través de nodos de texto manipulados en un documento XML. Aka como ataque XML Entity Expansion (XEE).","source":"nvd"}],"published":"2013-04-09T21:00:00.000Z","modified":"2026-06-16T23:52:11.147Z","severity":{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-400"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.3"}],"ecosystem":"Maven","package":"org.jruby:jruby","purl":"pkg:maven/org.jruby/jruby","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"1.9.3"},{"status":"affected","version":"1.9"},{"status":"affected","version":"1.9.1"},{"status":"affected","version":"1.9.2"},{"status":"affected","version":"1.9.3"},{"status":"affected","version":"1.9.3"},{"status":"affected","version":"1.9.3"},{"status":"affected","version":"1.9.3"},{"status":"affected","version":"1.9.3"},{"status":"affected","version":"1.9.3"},{"status":"affected","version":"2.0"},{"status":"affected","version":"2.0.0"},{"status":"affected","version":"2.0.0"},{"status":"affected","version":"2.0.0"}],"vendor":"ruby-lang","product":"ruby","cpe":"cpe:2.3:a:ruby-lang:ruby:*:p385:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"http://rhn.redhat.com/errata/RHSA-2013-0612.html","tags":["vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2013:124","tags":["vendor-advisory","web","x-refsource-mandriva","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://lists.opensuse.org/opensuse-updates/2013-04/msg00034.html","tags":["vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.slackware.com/security/viewer.php?l=slackware-security&y=2013&m=slackware-security.426862","tags":["vendor-advisory","web","x-refsource-slackware","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://secunia.com/advisories/52783","tags":["third-party-advisory","vendor-advisory","x-refsource-secunia","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://www.debian.org/security/2013/dsa-2738","tags":["vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://lists.opensuse.org/opensuse-updates/2013-04/msg00036.html","tags":["vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=39384","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702525","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://wiki.mageia.org/en/Support/Advisories/MGASA-2013-0092","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html","tags":["x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://www.ubuntu.com/usn/USN-1780-1","tags":["vendor-advisory","web","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.securityfocus.com/bid/58141","tags":["vdb-entry","x-refsource-bid","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://secunia.com/advisories/52902","tags":["third-party-advisory","vendor-advisory","x-refsource-secunia","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2013/03/06/5","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=914716","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.ruby-lang.org/en/news/2013/02/22/rexml-dos-2013-02-22/","tags":["vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00001.html","tags":["vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.debian.org/security/2013/dsa-2809","tags":["vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-1028.html","tags":["vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0611.html","tags":["vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-1147.html","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00015.html","tags":["vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2013-1821","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jruby/jruby","tags":["package"],"sources":["ghsa"]},{"url":"https://www.jruby.org/2013/02/21/jruby-1-7-3.html","tags":["web"],"sources":["ghsa"]},{"url":"http://www.ruby-lang.org/en/news/2013/02/22/rexml-dos-2013-02-22","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2013-1821","url":"https://www.cve.org/CVERecord?id=CVE-2013-1821","licence":"CVE Terms of Use","modified":"2024-08-06T15:13:33.271Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hgg7-cghq-xhf4","url":"https://github.com/advisories/GHSA-hgg7-cghq-xhf4","licence":"CC-BY-4.0","modified":"2024-11-29T05:38:00.378Z"},{"source":"nvd","name":"NVD","id":"CVE-2013-1821","url":"https://nvd.nist.gov/vuln/detail/CVE-2013-1821","licence":"Public domain","modified":"2026-06-16T23:52:11.147Z"}],"updatedAt":"2026-11-25T22:57:15.700Z","epss":{"score":0.07103,"percentile":0.94369,"date":"2026-12-01T12:00:22.000Z"}}