{"id":"CVE-2013-4164","published":"2013-11-23T19:00:00Z","modified":"2024-08-06T16:30:50Z","title":"Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1 before 2.1.0 preview2, and…","vendor":null,"product":null,"tier":"tail","description":{"text":"Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1 before 2.1.0 preview2, and trunk before revision 43780 allows context-dependent attackers to cause a denial of service (segmentation fault) and possibly execute arbitrary code via a string that is converted to a floating point value, as demonstrated using (1) the to_f method or (2) JSON.parse.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.34968,"percentile":0.98472,"provenance":"source"},"cwes":[],"references":[{"url":"https://puppet.com/security/cve/cve-2013-4164","tags":["x_refsource_CONFIRM"]},{"url":"http://archives.neohapsis.com/archives/bugtraq/2014-10/0103.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://lists.opensuse.org/opensuse-updates/2013-12/msg00028.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.ubuntu.com/usn/USN-2035-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://archives.neohapsis.com/archives/bugtraq/2014-04/0134.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-0215.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2013-12/msg00009.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-1763.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-1764.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.ruby-lang.org/en/news/2013/11/22/ruby-2-0-0-p353-is-released","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/63873","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://www.ruby-lang.org/en/news/2013/11/22/heap-overflow-in-floating-point-parsing-cve-2013-4164","tags":["x_refsource_CONFIRM"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-1767.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-0011.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://lists.opensuse.org/opensuse-updates/2013-12/msg00027.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://support.apple.com/kb/HT6536","tags":["x_refsource_CONFIRM"]},{"url":"http://osvdb.org/100113","tags":["vdb-entry","x_refsource_OSVDB"]},{"url":"http://www.debian.org/security/2013/dsa-2810","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://secunia.com/advisories/57376","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://www.ruby-lang.org/en/news/2013/11/22/ruby-1-9-3-p484-is-released","tags":["x_refsource_CONFIRM"]},{"url":"http://www.debian.org/security/2013/dsa-2809","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://secunia.com/advisories/55787","tags":["third-party-advisory","x_refsource_SECUNIA"]}],"priority":{"score":24.7,"factors":[{"name":"EPSS percentile","points":19.69},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"metasploit":[{"name":"Ruby on Rails JSON Processor Floating Point Heap Overflow DoS","module":"auxiliary/dos/http/rails_json_float_dos","type":"auxiliary","disclosureDate":"2013-11-22","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/dos/http/rails_json_float_dos.rb"}],"first":{"date":"2013-11-22","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/dos/http/rails_json_float_dos.rb"},"provenance":"source"},"summary":{"text":"A heap-based buffer overflow exists in Ruby, affecting the 1.8 and 1.9 branches, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1 before 2.1.0 preview2, and trunk before revision 43780, in the code that converts strings to floating point values, as shown by the to_f method and JSON.parse. An attacker able to supply a crafted string that gets converted to a float can trigger a segmentation fault for denial of service and possibly execute arbitrary code, with no specific network access, authentication, user interaction, or configuration requirements stated.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:37:35Z"},"euvd":{"id":"EUVD-2013-4089","exploited":false,"provenance":"source"}}