CVE-2013-4164
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.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
34.968%
chance of exploitation in the next 30 days
higher than 98.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 1
Nuclei templates: 0
Weakness
- CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Timeline
- 2013-11-23Published by the CNA19:00 UTC
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| ruby-lang ruby | 1.8no fix listed1.9no fix listed1.9.1no fix listed1.9.2no fix listed1.9.3no fix listed(+2 more) | not listednot listednot listednot listednot listed |
References
- https://www.ruby-lang.org/en/news/2013/11/22/ruby-2-0-0-p353-is-released
- http://archives.neohapsis.com/archives/bugtraq/2014-04/0134.html
- http://archives.neohapsis.com/archives/bugtraq/2014-10/0103.html
- http://lists.opensuse.org/opensuse-security-announce/2013-12/msg00009.html
- http://lists.opensuse.org/opensuse-updates/2013-12/msg00027.html
- http://lists.opensuse.org/opensuse-updates/2013-12/msg00028.html
- http://rhn.redhat.com/errata/RHSA-2013-1763.html
- http://rhn.redhat.com/errata/RHSA-2013-1764.html
- http://rhn.redhat.com/errata/RHSA-2013-1767.html
- http://rhn.redhat.com/errata/RHSA-2014-0011.html
- http://rhn.redhat.com/errata/RHSA-2014-0215.html
- http://secunia.com/advisories/55787
- http://www.debian.org/security/2013/dsa-2809
- http://www.debian.org/security/2013/dsa-2810
- http://www.ubuntu.com/usn/USN-2035-1
- https://www.ruby-lang.org/en/news/2013/11/22/heap-overflow-in-floating-point-parsing-cve-2013-4164
- http://osvdb.org/100113
- http://secunia.com/advisories/57376
- http://www.securityfocus.com/bid/63873
- https://puppet.com/security/cve/cve-2013-4164
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2013-4164'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2013-4164'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2013-4164'curl 'https://api.contrastcyber.com/cve_products/CVE-2013-4164'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).