Race Condition Affecting phusion/passenger package, versions [3.0.0,5.3.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-PHUSIONPASSENGER-2364860
  • published26 Jan 2022
  • disclosed17 Jun 2018
  • creditUnknown

Introduced: 17 Jun 2018

CVE-2018-12029  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade phusion/passenger to version 5.3.2 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition. 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.

References

CVSS Scores

version 3.1