Phusion Passenger incorrect permission assignment
Date: 2022-05
Affected: rubygems/passenger
Attack vector: other
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2018-12615
CWE: CWE-732
CVSS: 5.3 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):