Вернуться к предупреждениям о безопасности

Security: Privilege Escalation via Phusion Passenger’s Watchdog API

A privilege-escalation vulnerability in Phusion Passenger's Watchdog API affects cPanel & WHM servers that have one of the affected Passenger packages installed; default installations are not affected. Local privilege escalation is possible, so make sure the Passenger packages are updated to the latest version.

Critical
CloudLinux cPanel CentOS 7 CloudLinux 7 CloudLinux 8

Команда обновления по умолчанию

yum update mod_passenger ea-apache24-mod-passenger   # or WHM → EasyApache 4 → Update

Команды исправления

EL7 (CentOS/CloudLinux 7)

sudo yum update

EL8+ (AlmaLinux/CloudLinux/Rocky)

sudo dnf update

Что это значит по лицензии SharedLicense

Local privilege escalation is possible on servers where an affected Passenger package is installed.

Situation

A security vulnerability has been discovered in Phusion Passenger’s Watchdog API.

Note: This does not affect default installations of cPanel. This vulnerability is only applicable to servers where an affected package has been installed. Please check the “Affected Product Versions” Table for a full list of vulnerable packages.

Affected Product Versions

Product Affected Versions Patched Versions
cPanel/WHM All versions with one of the following packages installed:

  • ea-apache24-mod-passenger
  • ea-passenger-src
  • ea-ruby27-rubygem-passenger
  • ea-ruby27-mod_passenger
  • ea-ruby24-rubygem-passenger
  • ea-ruby24-mod_passenger
  • ea-nginx-passenger
  • ea-apache24-mod-passenger: 6.1.8-2 
  • ea-passenger-src: 6.1.8-2
  • ea-ruby27-rubygem-passenger: 6.0.27-2 (el7), 6.1.8-2 (el8)
  • ea-ruby27-mod_passenger: 6.0.27-2 (el7), 6.1.8-2 (el8)
  • ea-ruby24-rubygem-passenger: 6.0.20-4 
  • ea-ruby24-mod_passenger: 6.0.20-4 
  • ea-nginx-passenger: 6.1.8-2 

Impact

Local privilege escalation is possible.

 

Call to action

Make sure the Passenger packages are updated to the latest version. The following command can be used to update all packages:

# /scripts/update-packages

Alternatively, the following commands can be used to update those individual packages as needed. These commands will only update packages that are already installed on the server:

CentOS 7/CloudLinux 7

# yum update ea-apache24-mod-passenger ea-nginx-passenger ea-ruby27-rubygem-passenger ea-ruby27-mod_passenger ea-ruby24-rubygem-passenger ea-ruby24-mod_passenger

AlmaLinux/CloudLinux 8/9/10

# dnf update ea-apache24-mod-passenger ea-nginx-passenger ea-ruby27-rubygem-passenger ea-ruby27-mod_passenger ea-ruby24-rubygem-passenger ea-ruby24-mod_passenger

Ubuntu

# apt update && apt install –only-upgrade ea-apache24-mod-passenger

If Passenger was installed and reachable on your server before it was patched, the following command can be used to check for signs of compromise:

CPANEL_WARN: Please note that a clean result does not confirm a server was not exploited as these entries are not written at the default log level. Unless the log level has already been raised on your server these would not be recorded.

# grep -E ‘API account database is empty|Authentication failed for UID’  /etc/apache2/logs/error_log /usr/local/apache/logs/error_log 2>/dev/null

The log level can be raised if needed to capture any future attempts via the following steps:

  1. Log in to WHM as the root user, and access Home / Service Configuration / Apache Configuration / Include Editor
  2. Under the Pre Main Include section, select All Versions from the drop-down add the following:

    CONFIG_TEXT: PassengerLogLevel 4

  3. Click the Update button to save the configuration, and the Restart Apache button on the next page to restart the service.

How to verify that a server is patched

The following commands can be used to confirm the currently installed version of the Passenger packages:

CentOS/AlmaLinux/CloudLinux

# rpm -q ea-apache24-mod-passenger ea-passenger-src ea-ruby27-rubygem-passenger ea-ruby27-mod_passenger ea-ruby24-rubygem-passenger ea-ruby24-mod_passenger ea-nginx-passenger

Ubuntu

# dpkg-query -W -f=’${Package} ${Version}n’ ea-apache24-mod-passenger ea-passenger-src ea-ruby27-rubygem-passenger ea-ruby27-mod_passenger ea-ruby24-rubygem-passenger ea-ruby24-mod_passenger ea-nginx-passenger

Часто задаваемые вопросы

Does this affect every cPanel server?
No. Default installations of cPanel are not affected; the vulnerability only applies to servers where one of the affected Passenger packages listed in the advisory is installed.
How do I fix it?
Update the Passenger packages to the latest version with your server's package manager (yum or dnf), then restart the applications that use Passenger.
Is my cPanel license affected?
No. This concerns the Phusion Passenger packages, not licensing. Licenses keep working after the update.

Проверьте систему на уязвимости

Выберите продукт и операционную систему, чтобы увидеть точные команды исправления.

Проверьте свою систему