Live threats

All CVEs / Ruby-lang

CVE-2013-4164Ruby-lang Ruby

Medium 6.8 No auth neededHigh EPSS

Priority
60
CVSS 2.0
6.8
EPSS
42.0%
probability of exploitation in 30 days · percentile 99
Auth required
No
Published
Nov 23, 2013
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-119
Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby1.8
ruby-langruby1.9
ruby-langruby1.9.1
ruby-langruby1.9.2
ruby-langruby1.9.3
ruby-langruby2.0.0
ruby-langruby2.1

Official sources

References

Links published by the sources. Open them with care.