Live threats

All CVEs / Ruby-lang

CVE-2008-2662Ruby-lang Ruby

Critical 10.0 No auth needed

Priority
75
CVSS 2.0
10.0
EPSS
4.3%
probability of exploitation in 30 days · percentile 92
Auth required
No
Published
Jun 24, 2008
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-189
Vector
AV:N/AC:L/Au:N/C:C/I:C/A:C

What happens

Multiple integer overflows in the rb_str_buf_append 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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≤ 1.8.4
ruby-langruby> 1.8.5 < 1.8.5.231
ruby-langruby≥ 1.8.6 < 1.8.6.230
ruby-langruby≥ 1.8.7 < 1.8.7.22
ruby-langruby≥ 1.9.0 < 1.9.0.2
debiandebian_linux4.0
canonicalubuntu_linux6.06
canonicalubuntu_linux7.04
canonicalubuntu_linux7.10
canonicalubuntu_linux8.04

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.