Heap-based buffer overflow in Ruby - CVE-2013-4164

 

Heap-based buffer overflow in Ruby - CVE-2013-4164

Published: November 23, 2013 / Updated: July 29, 2020


Vulnerability identifier: #VU32601
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2013-4164
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in 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. A remote attacker can use a string that is converted to a floating point value to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Ruby
Amazon Linux AMI
Slackware Linux
ruby (Alpine package)

How to mitigate CVE-2013-4164

Update to version 2.1.0.

Ruby - update to 2.1.0
ruby (Alpine package) - update to 1.8.7_p374-r1

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins