CVE-2013-4164
ruby: heap overflow in floating point parsing
Severity
CriticalRed Hat Product Security
CVSS 2.0
Review impact separately from score.
Published · November 22, 2013
Updated · June 28, 2026
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.
Statement
This issue did not affect the versions of ruby as shipped with Red Hat Enterprise Linux 5.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 2.0 · 7.5AV:N/AC:L/Au:N/C:P/I:P/A:P
CWE-681 · Incorrect Conversion between Numeric Types