Bug 1594361 (CVE-2018-12615)

Summary: CVE-2018-12615 passenger: privilege lowering in switchGroup() in agent/ExecHelper/ExecHelperMain.cpp
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abhgupta, barracks510, bbuckingham, bcourt, bkearney, dbaker, jkaluza, jokerman, mmccune, mrike, ohadlevy, rchan, rjerrido, sisharma, sthangav, tdawson, trankin, vanmeeuwen+fedora
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: passenger 5.3.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:29:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1594418, 1594419    
Bug Blocks: 1594362    

Description Laura Pardo 2018-06-22 17:30:00 UTC
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) in which supplementary groups are actually being set while lowering privileges.


References:
https://github.com/phusion/passenger/commit/4e97fdb86d0a0141ec9a052c6e691fcd07bb45c8

Comment 1 Laura Pardo 2018-06-22 21:33:39 UTC
Created passenger tracking bugs for this issue:

Affects: epel-7 [bug 1594419]
Affects: fedora-all [bug 1594418]

Comment 3 Riccardo Schirone 2018-10-23 12:24:12 UTC
Statement:

This issue did not affect the versions of rubygem-passenger as shipped with Red Hat Update Infrastructure as they did not include the vulnerable code, which was introduced in a newer version of the package.