CVE-2018-12029
HIGH 7.0CVSS 3.0Phusion Passenger Race Condition Allows Privilege Escalation
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.
- Published
- 17 Jun 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-362
- Also known as
- GHSA-jjcj-fgfm-9g9r
- Sources
- NVDJSONOSV GHSA-jjcj-fgfm-9g9rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.0 | CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.0 | CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.4 | AV:L/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | phusion | passengercpe:2.3:a:phusion:passenger:*:*:*:*:*:*:*:* |
>= 3.0.0, < 5.3.2 | 5.3.2 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| OSV | RubyGems | passenger | >= 3.0.0, < 5.3.2 | 5.3.2 |
References
- https://blog.phusion.nl/passenger-5-3-2 · Mitigation, Vendor Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2018/06/msg00007.html · Mailing List, Third Party Advisory, WEB
- https://pulsesecurity.co.nz/advisories/phusion-passenger-priv-esc · Third Party Advisory, WEB
- https://security.gentoo.org/glsa/201807-02 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-12029 · ADVISORY
- https://blog.phusion.nl/2018/06/12/passenger-5-3-2-various-security-fixes · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/passenger/CVE-2018-12029.yml · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 17 Jun 2018)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 May 2022)