CVE-2009-5147: Input Validation

Published May 11, 2009
·
Updated

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

Other sources

DL::dlopen in Ruby 1.8, 1.9.0, 1.9.2, 1.9.3, 2.0.0 before patchlevel 648, and 2.1 before 2.1.8 opens libraries with tainted names.

Launchpad

Affected Software

31 affected componentsFixes available
debian/ruby1.8
debian/ruby1.9.1
debian/ruby2.0
redhat/rh-ruby22-ruby<0:2.2.9-19.el6
0:2.2.9-19.el6
redhat/rh-ruby22-ruby<0:2.2.9-19.el7
0:2.2.9-19.el7
redhat/ruby<2.0.0
2.0.0
redhat/ruby<2.1.8
2.1.8
redhat/ruby<2.2.4
2.2.4
ruby-lang Ruby=2.0.0
ruby-lang Ruby=2.0.0-p481
ruby-lang Ruby=2.0.0-p353
ruby-lang Ruby=2.1.4
ruby-lang Ruby=1.9.0
ruby-lang Ruby=2.1.3
ruby-lang Ruby=2.0.0-p647
ruby-lang Ruby=2.1.0
ruby-lang Ruby=2.1.7
ruby-lang Ruby=2.0.0-p195
ruby-lang Ruby=2.1.1
ruby-lang Ruby=2.0.0-p643
ruby-lang Ruby=2.0.0-p594
ruby-lang Ruby=1.9.2
ruby-lang Ruby=2.0.0-p598
ruby-lang Ruby=2.0.0-p247
ruby-lang Ruby=2.1.6
ruby-lang Ruby=1.8.0
ruby-lang Ruby=1.9.3
ruby-lang Ruby=2.1.2
ruby-lang Ruby=2.0.0-p645
ruby-lang Ruby=2.1.5
ruby-lang Ruby=2.0.0-p576

Event History

May 11, 2009
CVE Published
via Red Hat·12:00 AM
Jul 31, 2015
Data Sourced
via Red Hat·07:44 AM
DescriptionSeverityAffected Software
Mar 29, 2017
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·10:16 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·01:12 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2009-5147?

CVE-2009-5147 has a severity rating that can vary based on the specific context of use within affected Ruby versions, typically categorized as moderate due to potential security implications.

2

How do I fix CVE-2009-5147?

To fix CVE-2009-5147, upgrade Ruby to version 2.1.8 or later, or to the patched versions specifically listed for your distribution.

3

What versions of Ruby are affected by CVE-2009-5147?

CVE-2009-5147 affects Ruby versions 1.8, 1.9, 2.0, 2.1, and 2.2.

4

Is my application vulnerable to CVE-2009-5147?

If your application uses Ruby versions 1.8, 1.9, or 2.0, it is likely vulnerable to CVE-2009-5147 unless patched.

5

What could happen if CVE-2009-5147 is exploited?

Exploitation of CVE-2009-5147 could allow an attacker to load arbitrary libraries, potentially executing malicious code within the Ruby application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203