CVE-2018-12615 Phusion Passenger incorrect permission assignment

Medium 5.3 Published Updated

Improper group initialization in Phusion Passenger allows attackers to gain unauthorized privileges due to uninitialized memory usage during privilege lowering.

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

What is CVE-2018-12615?

CVE-2018-12615 is a medium-severity vulnerability in n/a, published on 21 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in switchGroup() in agent/ExecHelper/ExecHelperMain.cpp in Phusion Passenger before 5.3.2. The set of groups (gidset) is not set correctly, leaving it up to randomness (i.e., uninitialized memory) which supplementary groups are actually being set while lowering privileges.

Weakness: CWE-732

Which versions are affected by CVE-2018-12615?

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

PackageAffectedFixed in
passenger RubyGemsAll versions5.3.2
passenger RubyGemsAll versions5.3.2

Products include Phusion Passenger.

How do I fix CVE-2018-12615?

Upgrade passenger to 5.3.2 or later.

Is CVE-2018-12615 being exploited?

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

Sources

Also known as GHSA-4284-jfhc-f854.

Is CVE-2018-12615 in your software?

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

Check your SBOMs for free