CVE-2013-4164: Ruby-Lang Ruby

Medium severity, CVSS 6.8. EPSS: 35% chance of exploitation in the next 30 days.

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.

Affected products

  • Ruby-Lang Ruby: version 1.8 only; version 1.9 only; version 1.9.1 only; version 1.9.2 only; version 1.9.3 only; version 2.0.0 only; …

Published 2013-11-23. Last modified 2026-06-16.