New cPanel Flaw Lets a Hosting Account Run Code as Root, Take Full Server Control

A Critical Vulnerability in cPanel Exposes Servers to Unrestricted Access

A newly discovered flaw in the widely used web hosting management platform, cPanel, has been found to allow an attacker with a compromised hosting account to execute code as root and take full control of the server. This critical vulnerability affects all versions of cPanel up to 82.0.9, exposing potentially thousands of servers worldwide to unauthorized access.

The bug, which was disclosed by a researcher on a security forum earlier this week, leverages cPanel’s file inclusion functionality to execute arbitrary code with root privileges. In essence, an attacker can upload malicious files to the server, and if they are placed in a specific directory, cPanel will automatically execute them as system commands. This allows the attacker to exploit the elevated permissions to install malware, steal sensitive data, or even take control of the entire server.

The vulnerability is particularly concerning because it affects servers that use cPanel’s default configuration, which includes many shared hosting providers and resellers. According to a report from a leading security firm, over 75% of all web hosting servers rely on cPanel for management tasks. This means that millions of websites could be exposed to unauthorized access, making them potential targets for hacking groups and cyber attackers.

The exploit requires no user interaction beyond uploading malicious files to the server, making it particularly difficult to detect and prevent. Once an attacker gains unrestricted access to a server, they can execute any command, including installing backdoors, creating new accounts with elevated privileges, or even wiping the entire disk. In the worst-case scenario, an attacker could use this vulnerability to take control of multiple servers, creating a botnet that can be used for targeted attacks.

The cPanel team has issued a patch to fix the vulnerability and urges all users to update their installations immediately. However, the incident highlights the importance of monitoring server logs and activity in real-time to detect potential security breaches. Server administrators should also ensure they have robust backup systems in place to minimize data loss in case of an attack.

As a practical takeaway for readers, it’s essential to be vigilant about cPanel updates and patches, as well as maintaining up-to-date software and plugins on the server. Regularly reviewing system logs and monitoring for suspicious activity can help detect potential security breaches early on. Additionally, consider implementing additional security measures such as intrusion detection systems or two-factor authentication to further secure your web hosting environment.


Source: The Hacker News — 2026-09-23