Bug 1248935 - (CVE-2009-5147, CVE-2015-7551) CVE-2009-5147 CVE-2015-7551 ruby: DL::dlopen could open a library with tainted library name
CVE-2009-5147 CVE-2015-7551 ruby: DL::dlopen could open a library with tainte...
Status: CLOSED WONTFIX
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20090511,reported=2...
: Reopened, Security
Depends On: 1248937 1249697 1534937 1534941
Blocks: 1248954
  Show dependency treegraph
 
Reported: 2015-07-31 03:44 EDT by Adam Mariš
Modified: 2018-03-26 05:42 EDT (History)
38 users (show)

See Also:
Fixed In Version: ruby 2.0.0-p648, ruby 2.1.8, ruby 2.2.4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-10 01:04:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0583 None None None 2018-03-26 05:42 EDT

  None (edit)
Description Adam Mariš 2015-07-31 03:44:21 EDT
DL::dlopen could open a library with tainted library name even if $SAFE > 0. This vulnerability affects Ruby versions 1.8, 1.9, 2.1, 2.2.

Upstream patch:
https://github.com/ruby/ruby/commit/4600cf725a86ce31266153647ae5aa1197b1215b

Additional information and CVE assignment:

http://seclists.org/oss-sec/2015/q3/222
Comment 1 Adam Mariš 2015-07-31 03:46:24 EDT
Created ruby tracking bugs for this issue:

Affects: fedora-all [bug 1248937]
Comment 2 Vít Ondruch 2015-07-31 04:11:56 EDT
(In reply to Adam Mariš from comment #0)
> DL::dlopen could open a library with tainted library name even if $SAFE > 0.
> This vulnerability affects Ruby versions 1.8, 1.9, 2.1, 2.2.

This is hardly true, since DL was removed from Ruby 2.2:

https://github.com/ruby/ruby/commit/07308c4d30b8c5260e5366c8eed2abf054d86fe7
Comment 3 Mamoru TASAKA 2015-07-31 04:36:16 EDT
First of all, why is this CVE(-2009-5147, note "2009") reported now?
The above oss-sec report says that this is already fixed in 1.9.1-p129.
Comment 4 Adam Mariš 2015-07-31 07:45:41 EDT
Hello!

This bug is only being reported now because the CVE was assigned only two days ago. Because the flaw was patched in 2009, it got a CVE from year 2009. As Vit noted above, this probably does not affect Ruby 2.2 but we still have to look into all other versions to see if they were patched.
Comment 9 Martin Prpič 2015-12-18 08:50:14 EST
This flaw has been re-introduced in Fiddle:

"There is an unsafe tainted string vulnerability in Fiddle and DL. This issue was originally reported and fixed with CVE-2009-5147 in DL, but reappeared after DL was reimplemented using Fiddle and libffi.

And, about DL, CVE-2009-5147 was fixed at Ruby 1.9.1, but not fixed at other branches, then rubies which bundled DL except Ruby 1.9.1 are still vulnerable."

https://www.ruby-lang.org/en/news/2015/12/16/unsafe-tainted-string-usage-in-fiddle-and-dl-cve-2015-7551/
Comment 10 Fedora Update System 2015-12-29 17:23:35 EST
ruby-2.2.4-47.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 11 Fedora Update System 2016-01-07 22:27:19 EST
ruby-2.2.4-47.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
Comment 12 Andrej Nemec 2017-09-08 07:55:29 EDT
Statement:

Red Hat Product Security has rated this issue as having Low security
impact. This issue is not currently planned to be addressed in future updates. 

For additional information, refer to the Issue Severity Classification:
https://access.redhat.com/security/updates/classification/.
Comment 14 errata-xmlrpc 2018-03-26 05:42:40 EDT
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS

Via RHSA-2018:0583 https://access.redhat.com/errata/RHSA-2018:0583

Note You need to log in before you can comment on or make changes to this bug.