BreachSpiderVerified, not vibes

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

High 7.8

Integer overflow in the (1) rb_ary_splice 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; and (2) the rb_ary_replace function in 1.6.x allows context-dependent attackers to trigger memory corruption via unspecified vectors, aka the "REALLOC_N" variant...

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

CVSS 2.07.8
EPSS3.7%
EPSS percentile91th
FixSee advisory

Remotely exploitable over the network, low complexity, no confidentiality impact, no integrity impact.

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.4 ≥ 1.8.5, < 1.8.5.231 ≥ 1.8.6, < 1.8.6.230 ≥ 1.8.7, < 1.8.7.22

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

Integer overflow in the (1) rb_ary_splice 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; and (2) the rb_ary_replace function in 1.6.x allows context-dependent attackers to trigger memory corruption via unspecified vectors, aka the "REALLOC_N" variant, a different issue than CVE-2008-2662, CVE-2008-2663, and CVE-2008-2664. 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2008-2725
BreachSpider IDBS-2008-GLOBAL-021314-H
CVSS vectorAV:N/AC:L/Au:N/C:N/I:N/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 high severity vulnerability affects Canonical systems (CVE-2008-2725). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: Integer overflow in the (1) rb_ary_splice 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; and (2) the rb_ary_replace function in 1.6.x allows context-dependent attackers to trigger memory corruption via unspecified vectors, aka the "REALLOC_N" variant, a different issue than CVE-2008-2662, CVE-2008-2663, and CVE-2008-2664. NOTE: as of 20080624, there has been inconsistent usage of multiple CVE identifiers related to Ruby. The CVE CVSS vector: AV:N/AC:L/Au:N/C:N/I:N/A:C.

Questions

What is CVE-2008-2725?

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

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

CVE-2008-2725 has CVSS 7.8 (High). Vector: AV:N/AC:L/Au:N/C:N/I:N/A:C. EPSS: 3.7%.

Is CVE-2008-2725 actively exploited?

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

How do I remediate CVE-2008-2725?

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-2725?

CVE-2008-2725 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.