CVE-2013-4164

Ruby - Memory Corruption

Title source: rule

Description

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.

Exploits (1)

metasploit WORKING POC
by Charlie Somerville, joev, todb · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/dos/http/rails_json_float_dos.rb

Scores

EPSS 0.1196
EPSS Percentile 93.8%

Details

CWE
CWE-119
Status published
Products (7)
ruby-lang/ruby 1.8
ruby-lang/ruby 1.9
ruby-lang/ruby 1.9.1
ruby-lang/ruby 1.9.2
ruby-lang/ruby 1.9.3
ruby-lang/ruby 2.0.0
ruby-lang/ruby 2.1 preview1
Published Nov 23, 2013
Tracked Since Feb 18, 2026