Integer overflow in the rb_ary_fill function in array.c in Ruby before revision 17756…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-189 and the CVSS impact.
Summary
Integer overflow in the rb_ary_fill function in array.c in Ruby before revision 17756 allows context-dependent attackers to cause a denial of service (crash) or possibly have unspecified other impact via a call to the Array#fill method with a start (aka beg) argument greater than ARY_MAX_SIZE. NOTE: this issue exists because of an incomplete fix for other closely related integer overflows.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
Red Hat 2 advisories
- RHSA-2008:0562 Released 2008-07-14 · Red Hat rating Moderateruby security update
- Red Hat Desktop version 3 irb-1.6.8-12.el3, irb-1.6.8-12.el3.i386, ruby-1.6.8-12.el3 +11
- Red Hat Enterprise Linux AS (Advanced Server) version 2.1 irb-1.6.4-6.el2.i386, ruby-1.6.4-6.el2, ruby-1.6.4-6.el2.i386 +4
- Red Hat Enterprise Linux AS version 3 irb-1.6.8-12.el3, irb-1.6.8-12.el3.i386, irb-1.6.8-12.el3.ia64 +25
- Red Hat Enterprise Linux ES version 2.1 irb-1.6.4-6.el2.i386, ruby-1.6.4-6.el2, ruby-1.6.4-6.el2.i386 +4
- Red Hat Enterprise Linux ES version 3 irb-1.6.8-12.el3, irb-1.6.8-12.el3.i386, irb-1.6.8-12.el3.ia64 +18
- Red Hat Enterprise Linux WS version 2.1 irb-1.6.4-6.el2.i386, ruby-1.6.4-6.el2, ruby-1.6.4-6.el2.i386 +4
- Red Hat Enterprise Linux WS version 3 irb-1.6.8-12.el3, irb-1.6.8-12.el3.i386, irb-1.6.8-12.el3.ia64 +18
- RHSA-2008:0561 Released 2008-07-14 · Red Hat rating Moderateruby security update
- Red Hat Enterprise Linux (v. 5 server) ruby-1.8.5-5.el5_2.3, ruby-1.8.5-5.el5_2.3.i386, ruby-1.8.5-5.el5_2.3.ia64 +33
- Red Hat Enterprise Linux AS version 4 irb-1.8.1-7.el4_6.1, irb-1.8.1-7.el4_6.1.i386, irb-1.8.1-7.el4_6.1.ia64 +25
- Red Hat Enterprise Linux Desktop (v. 5 client) ruby-1.8.5-5.el5_2.3, ruby-1.8.5-5.el5_2.3.i386, ruby-docs-1.8.5-5.el5_2.3 +11
- Red Hat Enterprise Linux Desktop Workstation (v. 5 client) ruby-1.8.5-5.el5_2.3, ruby-devel-1.8.5-5.el5_2.3, ruby-devel-1.8.5-5.el5_2.3.i386 +2
- Red Hat Enterprise Linux Desktop version 4 irb-1.8.1-7.el4_6.1, irb-1.8.1-7.el4_6.1.i386, ruby-1.8.1-7.el4_6.1 +11
- Red Hat Enterprise Linux ES version 4 irb-1.8.1-7.el4_6.1, irb-1.8.1-7.el4_6.1.i386, irb-1.8.1-7.el4_6.1.ia64 +18
- Red Hat Enterprise Linux WS version 4 irb-1.8.1-7.el4_6.1, irb-1.8.1-7.el4_6.1.i386, irb-1.8.1-7.el4_6.1.ia64 +18
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Desktop version 3 | Fixed | RHSA-2008:0562 |
| Red Hat Enterprise Linux (v. 5 server) | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux AS (Advanced Server) version 2.1 | Fixed | RHSA-2008:0562 |
| Red Hat Enterprise Linux AS version 3 | Fixed | RHSA-2008:0562 |
| Red Hat Enterprise Linux AS version 4 | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux Desktop (v. 5 client) | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux Desktop Workstation (v. 5 client) | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux Desktop version 4 | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux ES version 2.1 | Fixed | RHSA-2008:0562 |
| Red Hat Enterprise Linux ES version 3 | Fixed | RHSA-2008:0562 |
| Red Hat Enterprise Linux ES version 4 | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux WS version 2.1 | Fixed | RHSA-2008:0562 |
| Red Hat Enterprise Linux WS version 3 | Fixed | RHSA-2008:0562 |
| Red Hat Enterprise Linux WS version 4 | Fixed | RHSA-2008:0561 |
Timeline
- 2026-10-02 Threatist record created from CVE-2008-2376
- 2026-10-03 Alias added: GHSA-f7wf-fwmg-r7g3
References
Advisory 12
Other 7
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0218
- ADV-2008-2584
- https://issues.rpath.com/browse/RPL-2639
- [oss-security] 20080702 More ruby integer overflows (rb_ary_fill / Array#fill)
- oval:org.mitre.oval:def:9863
- http://wiki.rpath.com/Advisories:rPSA-2008-0218
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17756
More Ruby vulnerabilities
- TI-2026-71508 Integer overflow in GitLab allows code execution on the server KEVCVSS 3.1CRITICAL 10.0
- TI-2017-12709 Ruby before 2.4.3 allows Net::FTP command injection. CVSS 3.0HIGH 8.8
- TI-2008-03501 Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value… CVSS 2.0HIGH 7.8
- TI-2021-09891 In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web… CVSS 3.1HIGH 7.5
- TI-2013-03637 Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1… CVSS 2.0MEDIUM 6.8
- TI-2018-11751 An issue was discovered in the OpenSSL library in Ruby before 2.3.8, 2.4.x before 2.4.5… CVSS 3.0CRITICAL 9.8
Sources
- CVE-2008-2376 · CVE Program
- CVE-2008-2376 · NVD
- FIRST EPSS
- GHSA-f7wf-fwmg-r7g3 · GitHub Advisory Database · CC BY 4.0
- CVE-2008-2376 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences