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.8.7 before 1.8.7-p22, and 1.9.0 before 1.9.0-2 allow...
Critical CVSS 10.0
- CVE id
- CVE-2008-2662
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Ruby Runtimes and servers |
<= 1.8.4 >= 1.8.5, < 1.8.5.231 >= 1.8.6, < 1.8.6.230 >= 1.8.7, < 1.8.7.22 >= 1.9.0, < 1.9.0.2 |
1.8.5.231, 1.8.6.230, 1.8.7.22, 1.9.0.2 |
How to fix it
Upgrade Ruby to the fixed release of the line you run: 1.8.5.231, 1.8.6.230, 1.8.7.22, 1.9.0.2.
ruby --version
- Install the patched Ruby release of your minor line (rbenv, the ruby image tag) and update .ruby-version.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
Multiple integer overflows in the rbstrbuf_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.
References
- CVE-2008-2662 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2008-2662
- Web: https://exchange.xforce.ibmcloud.com/vulnerabilities/43345
- Web: https://issues.rpath.com/browse/RPL-2626
- Web: https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11601
- Web: https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00937.html
- Web: https://exchange.xforce.ibmcloud.com/vulnerabilities/43345
- Web: https://issues.rpath.com/browse/RPL-2626
- Web: https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11601
- Web: https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00937.html
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.