CVE-2018-12029

passenger: CHMOD race condition in nginx_module/ngx_http_passenger_module.c allows for local privilege escalation

Published Jun 17, 2018 CVSS 3.0 · 7.0 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1399-1 ruby-passenger security update
EUVD EUVD EUVD-2022-4382 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.
Github GHSA Github GHSA GHSA-jjcj-fgfm-9g9r Phusion Passenger Race Condition Allows Privilege Escalation
Ubuntu USN Ubuntu USN USN-5261-1 Phusion Passenger vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 8:24 AM
Reserved
Jun 7, 2018, 12:00 AM
Status
Modified
Published
Jun 17, 2018, 8:29 PM
Modified
Jun 17, 2026, 1:37 AM
Severity
Important
Public date
Jun 5, 2018, 12:00 AM