CVE-2007-0469 RubyGems file overwrite vulnerability
Attackers can overwrite arbitrary files and execute code via crafted GEM packages, requiring user interaction to install the malicious package.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2007-0469?
CVE-2007-0469 is a critical path traversal vulnerability in n/a, published on 24 Jan 2007. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The extract_files function in installer.rb in RubyGems before 0.9.1 does not check whether files exist before overwriting them, which allows user-assisted remote attackers to overwrite arbitrary files, cause a denial of service, or execute arbitrary code via crafted GEM packages.
Which versions are affected by CVE-2007-0469?
2 open source packages ship an affected version, including rubygems-update. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
rubygems-update RubyGems | All versions | 0.9.1 |
rubygems-update RubyGems | All versions | 0.9.1 |
Products include Rubyforge Rubygems.
How do I fix CVE-2007-0469?
Upgrade rubygems-update to 0.9.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2007-0469 being exploited?
There is no known exploitation of CVE-2007-0469 in the wild and no public exploit code.
Sources
Also known as GHSA-95vx-q4c2-64gr.