VDB
Sign up
MEDIUM5.3

GHSA-4284-jfhc-f854

Phusion Passenger incorrect permission assignment

Quick fix

GHSA-4284-jfhc-f854 — passenger: upgrade to the fixed version with the command below.

bundle update passenger

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/passenger
Introduced in: 0Fixed in: 5.3.2
Fixbundle update passenger

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:gem/passenger"]}'