CVE-2009-5147 Code injection in n/a
Attackers can execute arbitrary code by exploiting tainted library names in Ruby's DL::dlopen function, requiring a patch to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2009-5147?
CVE-2009-5147 is a high-severity code injection vulnerability in Ruby-Lang Ruby, published on 29 Mar 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-20
Which versions are affected by CVE-2009-5147?
It affects 1 product.
Products include Ruby-Lang Ruby.
How do I fix CVE-2009-5147?
Apply the vendor's patch.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2009-5147 being exploited?
There is no known exploitation of CVE-2009-5147 in the wild and no public exploit code.
Public exploit code: 2 proofs of concept on GitHub.
Other vulnerabilities in Ruby-Lang Ruby
Sources
Also known as DLA-299-1, DLA-300-1, GHSA-mmq8-m72q-qgm4, UBUNTU-CVE-2009-5147.