{"schemaVersion":3,"id":"CVE-2018-12029","aliases":["SUSE-SU-2018:2039-1","UBUNTU-CVE-2018-12029","DEBIAN-CVE-2018-12029","GHSA-jjcj-fgfm-9g9r"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-06-17T20:00:00.000Z","modified":"2024-08-05T08:24:03.642Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7,"severity":"high","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.4,"severity":"medium","vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7,"severity":"high","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":2.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7,"severity":"high","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":2.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Rubygems","score":7,"severity":"high","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":2.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.00276,"percentile":0.18822,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00276},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00276,"percentile":0.18822}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0029,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00276,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00276,"percentile":0.18822}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","description":"The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/362.html"}],"affected":[{"vendor":"debian","product":"passenger","name":"passenger","label":"passenger","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/passenger","purlType":"deb","versions":[{"text":"< 5.0.30-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.30-1.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"passenger","name":"passenger","label":"passenger","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/passenger","purlType":"deb","versions":[{"text":"< 5.0.27-2ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.0.30-1+deb9u1build0.18.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.27-2ubuntu0.1~esm1 | < 5.0.30-1+deb9u1build0.18.04.1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"RubyGems","product":"passenger","name":"passenger","label":"passenger","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/passenger","purlType":"gem","versions":[{"text":"≥ 3.0.0, < 5.3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 5.3.2","eol":null,"hubHref":null},{"vendor":"phusion","product":"passenger","name":"passenger","label":"passenger","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0.0, < 5.3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 5.3.2","eol":null,"hubHref":"/vendor/phusion/passenger"},{"vendor":"suse","product":"rubygem-passenger&distro=SUSE Linux Enterprise Module for Containers 12","name":"rubygem-passenger","label":"rubygem-passenger&distro=SUSE Linux Enterprise Module for Containers 12","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-passenger&distro=SUSE Linux Enterprise Module for Containers 12","purlType":"rpm","versions":[{"text":"< 5.0.18-12.9.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.18-12.9.1","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://blog.phusion.nl/passenger-5-3-2","label":"blog.phusion.nl/passenger-5-3-2","hostname":"blog.phusion.nl","tags":["X Refsource MISC","Mitigation","Vendor Advisory","REPORT","WEB"]},{"url":"https://security.gentoo.org/glsa/201807-02","label":"security.gentoo.org/glsa/201807-02","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory","WEB"]},{"url":"https://pulsesecurity.co.nz/advisories/phusion-passenger-priv-esc","label":"pulsesecurity.co.nz/advisories/phusion-passenger-priv-esc","hostname":"pulsesecurity.co.nz","tags":["X Refsource MISC","Third Party Advisory","REPORT","WEB"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/06/msg00007.html","label":"lists.debian.org/debian-lts-announce/2018/06/msg00007.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory","WEB"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20182039-1/","label":"www.suse.com/support/update/announcement/2018/suse-su-20182039-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1097663","label":"bugzilla.suse.com/1097663","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2018-12029","label":"www.suse.com/security/cve/CVE-2018-12029","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2018-12029","label":"ubuntu.com/security/CVE-2018-12029","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://blog.phusion.nl/2018/06/12/passenger-5-3-2-various-security-fixes/","label":"blog.phusion.nl/2018/06/12/passenger-5-3-2-various-security-fixes/","hostname":"blog.phusion.nl","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12029","label":"www.cve.org/CVERecord?id=CVE-2018-12029","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5261-1","label":"ubuntu.com/security/notices/USN-5261-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-12029","label":"security-tracker.debian.org/tracker/CVE-2018-12029","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12029","label":"nvd.nist.gov/vuln/detail/CVE-2018-12029","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://blog.phusion.nl/2018/06/12/passenger-5-3-2-various-security-fixes","label":"blog.phusion.nl/2018/06/12/passenger-5-3-2-various-security-fixes","hostname":"blog.phusion.nl","tags":["WEB"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/passenger/CVE-2018-12029.yml","label":"github.com/rubysec/ruby-advisory-db/blob/master/gems/passenger/CVE-2018-12029.yml","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["DLA-1399-1","USN-5261-1"],"duplicates":[],"related":["USN-5261-1"]},"timeline":[{"kind":"published","date":"2018-06-17T20:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T08:24:03.642Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:21:56.718Z","stale":false,"partial":false}}