CVE-2008-2725: 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...
High CVSS 7.8
- CVE id
- CVE-2008-2725
- 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.8.5.231, 1.8.6.230, 1.8.7.22 |
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.
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
Integer overflow in the (1) rbarysplice 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 rbaryreplace 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.
References
- CVE-2008-2725 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2008-2725
- Web: https://bugs.launchpad.net/ubuntu/+source/ruby1.8/+bug/241657
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-2727
- Web: https://exchange.xforce.ibmcloud.com/vulnerabilities/43350
- Web: https://issues.rpath.com/browse/RPL-2626
- Web: https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9606
- Web: https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00937.html
- Web: https://bugs.launchpad.net/ubuntu/+source/ruby1.8/+bug/241657
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-2727
- Web: https://exchange.xforce.ibmcloud.com/vulnerabilities/43350
- Web: https://issues.rpath.com/browse/RPL-2626
- Web: https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9606
- 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.