CVE-2013-4164Ruby-lang Ruby
Medium 6.8 No auth neededHigh EPSS
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| 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 |
Official sources
References
Links published by the sources. Open them with care.
- archives.neohapsis.com
- archives.neohapsis.com
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- osvdb.org
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- secunia.com Vendor Advisory
- secunia.com
- www.debian.org
- www.debian.org
- www.securityfocus.com
- www.ubuntu.com
- puppet.com
- support.apple.com
- www.ruby-lang.org Exploit
- www.ruby-lang.org
- www.ruby-lang.org Patch