{"id":"CVE-2018-12029","published":"2018-06-17T20:00:00Z","modified":"2024-08-05T08:24:03Z","title":"A race condition in the nginx module in Phusion Passenger 3.x through 5.x before 5.3.2 allows local escalation of…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00274,"percentile":0.20227,"provenance":"source"},"cwes":[],"references":[{"url":"https://blog.phusion.nl/passenger-5-3-2","tags":["x_refsource_MISC"]},{"url":"https://security.gentoo.org/glsa/201807-02","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://pulsesecurity.co.nz/advisories/phusion-passenger-priv-esc","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/06/msg00007.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":4.0,"factors":[{"name":"EPSS percentile","points":4.05}]},"affected":[{"ecosystem":"RubyGems","package":"passenger","vulnerableRanges":[">=3.0.0, <5.3.2"],"patched":["5.3.2"],"from":["GHSA-jjcj-fgfm-9g9r"],"provenance":"source"}],"summary":{"text":"The flaw is a race condition in the nginx module of Phusion Passenger (versions 3.x through 5.x before 5.3.2), which mishandles file ownership when a non-standard passenger_instance_registry_dir is configured with insufficiently strict permissions. A local user who can win the race by replacing a newly created file with a symlink before it is chowned can cause the link's target to be chowned, which can be used to escalate privileges, for example by targeting root's crontab.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:23:22Z"},"euvd":{"id":"EUVD-2022-4382","exploited":false,"provenance":"source"}}