CVE-2012-6135 RubyGems passenger gem allows remote attackers to delete files

High 7.5 Published Updated

Remote attackers can delete arbitrary files during the startup process of the Ruby application server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2012-6135?

CVE-2012-6135 is a high-severity path traversal vulnerability in Redhat Openshift, published on 19 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

RubyGems passenger 4.0.0 betas 1 and 2 allows remote attackers to delete arbitrary files during the startup process.

Weakness: CWE-20

Which versions are affected by CVE-2012-6135?

2 open source packages ship an affected version, including passenger. It affects 2 products.

PackageAffectedFixed in
passenger RubyGemsAll versions4.0.0.rc4
passenger RubyGemsAll versions4.0.0.rc4

Products include Phusion Passenger, Redhat Openshift.

How do I fix CVE-2012-6135?

Upgrade passenger to 4.0.0.rc4 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2012-6135 being exploited?

There is no known exploitation of CVE-2012-6135 in the wild and no public exploit code.

All Redhat Openshift vulnerabilities

Sources

Also known as GHSA-8mw8-j583-vqfg.

Is CVE-2012-6135 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free