Race Condition Affecting ruby-passenger package, versions <4.0.53-1+deb8u1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.28% (21st 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 IDSNYK-DEBIAN8-RUBYPASSENGER-275098
  • published17 Jun 2018
  • disclosed17 Jun 2018

Introduced: 17 Jun 2018

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

How to fix?

Upgrade Debian:8 ruby-passenger to version 4.0.53-1+deb8u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-passenger package and not the ruby-passenger package as distributed by Debian. See How to fix? for Debian:8 relevant fixed versions and status.

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.