CVE-2008-2663: Integer Overflow

Published Jun 11, 2008
·
Updated

Drew Yao of the Apple Product Security team reported an integer overflow leading to a memory mis-allocation and heap overflow in the rbarystore() function used by ruby interpreter for handling arrays. This can be used to crash and possibly execute arbitrary code with the privileges of Ruby application which use untrusted input in array 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 rbarystore function in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6 before 1.8.6-p230, and 1.8.7 before 1.8.7-p22 allow context-dependent attackers to execute arbitrary code or cause a denial of service via unknown vectors, a different issue than CVE-2008-2662, CVE-2008-2664, and CVE-2008-2725. NOTE: as of 20080624, there has been inconsistent usage of multiple CVE identifiers related to Ruby. The CVE description should be regarded as authoritative, although it is likely to change.

— MITRE

Affected Software

10 affected componentsFixes available
ruby-lang Ruby<=1.8.4
ruby-lang Ruby>1.8.5<1.8.5.231
ruby-lang Ruby>=1.8.6<1.8.6.230
ruby-lang Ruby>=1.8.7<1.8.7.22
Debian Debian Linux=4.0
Canonical Ubuntu Linux=6.06
Canonical Ubuntu Linux=7.04
Canonical Ubuntu Linux=7.10
Canonical Ubuntu Linux=8.04
redhat/1.8.6.230<1.
1.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/1.8.6.230 to a version that resolves this vulnerability.

    Fixed in 1.

Event History

Jun 11, 2008
Data Sourced
via Red Hat·08:50 AM
DescriptionSeverityAffected Software
Jun 24, 2008
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description
Data Sourced
07:41 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·07:41 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 1, 2018
Data Sourced
03:06 PM
RemedySeverity

Frequently Asked Questions

1

What is the severity of CVE-2008-2663?

CVE-2008-2663 has a high severity level due to the potential for arbitrary code execution or denial of service.

2

How do I fix CVE-2008-2663?

To fix CVE-2008-2663, upgrade Ruby to version 1.8.5-p231 or later, or any subsequent versions.

3

What versions of Ruby are affected by CVE-2008-2663?

Ruby versions 1.8.4 and earlier, as well as specific 1.8.5, 1.8.6, and 1.8.7 versions before their patched releases are affected.

4

What are the consequences of CVE-2008-2663 if exploited?

Exploitation of CVE-2008-2663 could lead to arbitrary code execution or a denial of service condition impacting applications using the affected Ruby versions.

5

Is CVE-2008-2663 present in Debian or Ubuntu systems?

Yes, CVE-2008-2663 is present in specific versions of Debian and Ubuntu Linux that use the affected Ruby versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203