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 passengerinstanceregistry_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.
{ "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "libapache2-mod-passenger" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "libapache2-mod-passenger-dbgsym" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "passenger" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "passenger-dbgsym" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "passenger-doc" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "ruby-passenger" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "ruby-passenger-doc" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "libapache2-mod-passenger" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "libapache2-mod-passenger-dbgsym" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "passenger" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "passenger-dbgsym" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "passenger-doc" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "ruby-passenger" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "ruby-passenger-doc" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "5.0.30-1.1", "binary_name": "libapache2-mod-passenger" }, { "binary_version": "5.0.30-1.1", "binary_name": "libapache2-mod-passenger-dbgsym" }, { "binary_version": "5.0.30-1.1", "binary_name": "passenger" }, { "binary_version": "5.0.30-1.1", "binary_name": "passenger-dbgsym" }, { "binary_version": "5.0.30-1.1", "binary_name": "passenger-doc" }, { "binary_version": "5.0.30-1.1", "binary_name": "ruby-passenger" }, { "binary_version": "5.0.30-1.1", "binary_name": "ruby-passenger-doc" } ] }