Advisory

GHSA-jjcj-fgfm-9g9r

Also known as: CVE-2018-12029

Summary

Phusion Passenger Race Condition Allows Privilege Escalation

Details

A race condition in the nginx module in Phusion Passenger 3.x through 5.x before 5.3.2 allows local escalation of privileges when a non-standard passenger_instance_registry_dir with insufficiently strict permissions is configured. Replacing a file with a symlink after the file was created, but before it was chowned, leads to the target of the link being chowned via the path. Targeting sensitive files such as root's crontab file allows privilege escalation.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-14 01:27 UTC
Modified
2024-02-20 05:28 UTC

Affected packages and fixes

passenger

RubyGems · All systems

Affected

  • introduced 3.0.0, fixed 5.3.2 (ecosystem)

Fixed versions

5.3.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences