Bug 1592612 (CVE-2018-12029) - CVE-2018-12029 passenger: CHMOD race condition in nginx_module/ngx_http_passenger_module.c allows for local privilege escalation
Summary: CVE-2018-12029 passenger: CHMOD race condition in nginx_module/ngx_http_passe...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2018-12029
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1592613 1592614
Blocks: 1592615
TreeView+ depends on / blocked
 
Reported: 2018-06-19 00:39 UTC by Sam Fowler
Modified: 2021-02-17 00:06 UTC (History)
18 users (show)

Fixed In Version: passenger 5.3.2
Clone Of:
Environment:
Last Closed: 2019-06-10 10:29:29 UTC
Embargoed:


Attachments (Terms of Use)

Description Sam Fowler 2018-06-19 00:39:33 UTC
Phusion Passenger versions 3.0.0 through 5.3.1 are vulnerable to a file system access race condition in the Nginx module that allows for local privilege escalation. The vulnerability was exploitable only when running a non-standard passenger_instance_registry_dir, via a race condition where after a file was created, there was a window in which it could be replaced with a symlink before it was chowned via the path and not the file descriptor.

If the symlink target was to a file which would be executed by root such as root's crontab file, then privilege escalation was possible.


External References:

https://blog.phusion.nl/2018/06/12/passenger-5-3-2-various-security-fixes/
https://pulsesecurity.co.nz/advisories/phusion-passenger-priv-esc


Upstream Patch:

https://github.com/phusion/passenger/commit/207870f5b7f5cc240587ab0977d6046782ae1d86

Comment 1 Sam Fowler 2018-06-19 00:39:54 UTC
Created passenger tracking bugs for this issue:

Affects: epel-7 [bug 1592614]
Affects: fedora-all [bug 1592613]

Comment 2 Siddharth Sharma 2018-06-19 15:18:11 UTC
Red Hat Ceph Storage 1.3 shipped rubygem-passenger as dependency to support rhcs-installer which was shipped as Tech Preview only.


Note You need to log in before you can comment on or make changes to this bug.