Vulnerabilities · 2013 · Ruby-lang
CVE-2013-4164
Ruby-lang Ruby vulnerability
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. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- secunia.com/advisories/55787 · Vendor Advisory
- www.ruby-lang.org/en/news/2013/11/22/ruby-2-0-0-p353-is-released · Patch
- www.ruby-lang.org/en/news/2013/11/22/heap-overflow-in-floating-point-parsing-cve-2013-4164 · Exploit
- archives.neohapsis.com/archives/bugtraq/2014-04/0134.html
- archives.neohapsis.com/archives/bugtraq/2014-10/0103.html
- lists.opensuse.org/opensuse-security-announce/2013-12/msg00009.html
- lists.opensuse.org/opensuse-updates/2013-12/msg00027.html
- lists.opensuse.org/opensuse-updates/2013-12/msg00028.html
- nvd.nist.gov/vuln/detail/CVE-2013-4164
- cve.org/CVERecord?id=CVE-2013-4164
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.