Description
The Fiddle::Handle implementation in ext/fiddle/handle.c in Ruby before 2.0.0-p648, 2.1 before 2.1.8, and 2.2 before 2.2.4, as distributed in Apple OS X before 10.11.4 and other products, mishandles tainting, which allows context-dependent attackers to execute arbitrary code or cause a denial of service (application crash) via a crafted string, related to the DL module and the libffi library. NOTE: this vulnerability exists because of a CVE-2009-5147 regression.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | ruby2.3 | 2.3.1-2~16.04.2 | USN-3365-1 |
| Ubuntu 14.04 LTS | ruby1.9.1 | 1.9.3.484-2ubuntu1.3 | USN-3365-1 |
| Ubuntu 14.04 LTS | ruby2.0 | 2.0.0.484-1ubuntu2.4 | USN-3365-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 3 | rh-ruby22-ruby +5 | 2.2.9-19.el6 | RHSA-2018:0583 |
| RHEL 3 | rh-ruby22-rubygem-bigdecimal | 1.2.6-19.el6 | RHSA-2018:0583 |
| RHEL 3 | rh-ruby22-rubygem-io-console | 0.4.3-19.el6 | RHSA-2018:0583 |
| RHEL 3 | rh-ruby22-rubygem-json | 1.8.1.1-19.el6 | RHSA-2018:0583 |
| RHEL 3 | rh-ruby22-rubygem-minitest | 5.4.3-19.el6 | RHSA-2018:0583 |
| RHEL 3 | rh-ruby22-rubygem-power_assert | 0.2.2-19.el6 | RHSA-2018:0583 |
| RHEL 3 | rh-ruby22-rubygem-psych | 2.0.8.1-19.el6 | RHSA-2018:0583 |
| RHEL 3 | rh-ruby22-rubygem-rake | 10.4.2-19.el6 | RHSA-2018:0583 |
| RHEL 3 | rh-ruby22-rubygem-rdoc | 4.2.0-19.el6 | RHSA-2018:0583 |
| RHEL 3 | rh-ruby22-rubygem-test-unit | 3.0.8-19.el6 | RHSA-2018:0583 |
| RHEL 3 | rh-ruby22-rubygems +1 | 2.4.5.4-19.el6 | RHSA-2018:0583 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | ruby3.3 +5 | 3.3.10-23.1.hum1 | RHSA-2026:7305 |
| Red Hat Hardened Images 1 | ruby3.4 +5 | 3.4.8-31.1.hum1 | RHSA-2026:7307 |
| Red Hat Hardened Images 1 | ruby4.0 +5 | 4.0.0-33.3.hum1 | RHSA-2026:8838 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP2 | ruby2.1 | 2.1.9-15.1 | SUSE-SU-2017:1067-1 |
| SLES 12 SP1 | ruby2.1 | 2.1.9-15.1 | SUSE-SU-2017:1067-1 |
| SLES 11 SP4 | ruby | 1.8.7.p357-0.9.19.1 | SUSE-SU-2017:0948-1 |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE WebYast 1.3 | ruby | 1.8.7.p357-0.9.19.1 | SUSE-SU-2017:0948-1 |
| SUSE Studio Onsite 1.3 | ruby | 1.8.7.p357-0.9.19.1 | SUSE-SU-2017:0948-1 |
| SLES for SAP 12 SP2 | ruby2.1 | 2.1.9-15.1 | SUSE-SU-2017:1067-1 |
| SLES for SAP 12 SP1 | ruby2.1 | 2.1.9-15.1 | SUSE-SU-2017:1067-1 |
| SLES for SAP 11 SP4 | ruby | 1.8.7.p357-0.9.19.1 | SUSE-SU-2017:0948-1 |
| SUSE Lifecycle Management Server 1.3 | ruby | 1.8.7.p357-0.9.19.1 | SUSE-SU-2017:0948-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ruby2.2 | 2.2.5-1.5 | openSUSE-SU-2024:10481-1 |
Advisories 8
- RHSA-2026:7305 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 6, 2026
- RHSA-2026:8838 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 6, 2026
- RHSA-2026:7307 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 6, 2026
- RHSA-2018:0583 Red Hat Security Advisory: rh-ruby22-ruby security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-3365-1 ruby1.9.1, ruby2.0, ruby2.3 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- SUSE-SU-2017:1067-1 Security update for ruby2.1 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:0948-1 Security update for ruby SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10481-1 libruby2_2-2_2-2.2.5-1.5 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- APPLE-SA-2016-03-21-5 vendor-advisory
- https://people.canonical.com/~ubuntu-security/cve/2015/CVE-2015-7551.html
- https://support.apple.com/HT206167
- https://github.com/ruby/ruby/commit/339e11a7f178312d937b7c95dd3115ce7236597a
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796344
- https://www.ruby-lang.org/en/news/2015/12/16/unsafe-tainted-string-usage-in-fiddle-and-dl-cve-2015-7551/
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796551
- http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
- https://puppet.com/security/cve/ruby-dec-2015-security-fixes
- RHSA-2018:0583 vendor-advisory
- 76060 vdb-entry