BreachSpiderVerified, not vibes

CVE-2008-2662 in Canonical Ubuntu Linux and 2 more products

Critical 10.0

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 c...

Affects 3 products from 3 vendors. Facts below cite their sources.

CVSS 2.010.0
EPSS4.3%
EPSS percentile92th
FixSee advisory

Remotely exploitable over the network, low complexity.

Affected products and versions

VendorProductAffected versions
Canonical Ubuntu Linux 6.06 7.04 7.10 8.04
Debian Debian Linux 4.0
Ruby-Lang Ruby > 1.8.5, < 1.8.5.231 ≤ 1.8.4 ≥ 1.8.6, < 1.8.6.230 ≥ 1.8.7, < 1.8.7.22 ≥ 1.9.0, < 1.9.0.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2008-2662
BreachSpider IDBS-2008-GLOBAL-329203-C
CVSS vectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Published2008-06-24
Last modified2026-06-16
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-189: CWE-189

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2008. A critical vulnerability affects Canonical systems (CVE-2008-2662). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: 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 CVSS vector: AV:N/AC:L/Au:N/C:C/I:C/A:C.

Questions

What is CVE-2008-2662?

This vulnerability was disclosed in 2008. A critical vulnerability affects Canonical systems (CVE-2008-2662). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2008-2662?

CVE-2008-2662 has CVSS 10.0 (Critical). Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C. EPSS: 4.3%.

Is CVE-2008-2662 actively exploited?

No confirmed active exploitation of CVE-2008-2662 as of 2026-09-25.

How do I remediate CVE-2008-2662?

Priority: MEDIUM. Advisory: http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/ PSIRT: [email protected]

What systems are affected by CVE-2008-2662?

CVE-2008-2662 affects Canonical Ubuntu Linux; Debian Debian Linux; Ruby-Lang Ruby.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.