CVE-2008-2662: Integer Overflow
Drew Yao of the Apple Product Security team reported an integer overflow leading to a memory mis-allocation and heap overflow in the rbstrbufappend() function used by ruby interpreter for handling strings. This can be used to crash and possibly execute arbitrary code with the privileges of Ruby application which use untrusted input in string operations.
Acknowledgements:
Red Hat would like to thank Drew Yao of the Apple Product Security team for reporting this issue.
Other sources
Multiple integer overflows in the rbstrbufappend function in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6 before 1.8.6-p230, 1.8.7 before 1.8.7-p22, and 1.9.0 before 1.9.0-2 allow context-dependent attackers to execute arbitrary code or cause a denial of service via unknown vectors that trigger memory corruption, a different issue than CVE-2008-2663, CVE-2008-2664, and CVE-2008-2725. NOTE: as of 20080624, there has been inconsistent usage of multiple CVE identifiers related to Ruby. This CVE description should be regarded as authoritative, although it is likely to change.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/1.8.6.230to a version that resolves this vulnerability.Fixed in 1.
Event History
Frequently Asked Questions
What is the severity of CVE-2008-2662?
CVE-2008-2662 is considered a critical vulnerability due to its potential to allow arbitrary code execution or denial of service.
How do I fix CVE-2008-2662?
To fix CVE-2008-2662, update Ruby to version 1.8.5-p231 or later, or apply the appropriate patches for affected releases.
What versions of Ruby are affected by CVE-2008-2662?
CVE-2008-2662 affects Ruby versions 1.8.4 and earlier, as well as specific earlier releases of 1.8.5, 1.8.6, 1.8.7, and 1.9.0.
Can CVE-2008-2662 be exploited remotely?
Yes, CVE-2008-2662 can potentially be exploited by context-dependent attackers to execute arbitrary code remotely.
What are the implications of CVE-2008-2662?
The implications of CVE-2008-2662 include the possibility of unauthorized command execution and service disruptions.