Surprisingly Useful AI Article Enhancements
A critical authentication bypass vulnerability in web-publishing stalwart features, cPanel and WHM, is under active exploitation, with evidence suggesting attackers have been abusing the flaw for months before patches were made available. Furthermore, botched patching, from webhosts including Australia’s Digital Pacific, has taken customer sites offline, with no word given on a restoration timeline.
The vulnerability, tracked as CVE-2026-41940, carries the (widely used) common vulnerability scoring system (CVSS) rating of 9.8 out of 10 and affects all supported versions of cPanel and WebHost Manager (WHM) released after version 11.40.
The flaw also impacts WP Squared version 136.1.7, a managed WordPress hosting platform built on top of cPanel.

What the vulnerability does
The bug is caused by a carriage return line feed (CRLF) injection in the login and session loading processes of cPanel and WHM, according to an analysis by security vendor Rapid7.
In practical terms, a successful exploit hands an attacker full administrative control of the server.
Before authentication occurs, cpsrvd – the cPanel service daemon – writes a new session file to disk. An attacker can manipulate the whostmgrsession cookie by omitting an expected segment of its value, bypassing the encryption process that would normally be applied to attacker-supplied input.
Ryan Emmons, a Researcher at Rapid7, explained that attackers can inject raw characters via a malicious basic authorisation header, and the system then writes the session file without sanitising the data.
“As a result, the attacker can insert arbitrary properties, such as user=root, into their session file,” Emmons wrote. “After triggering a reload of the session from the file, the attacker establishes administrator-level access for their token.”
Scale of the threat
cPanel is one of the most widely used web-based control panels, giving website owners and administrators a graphical interface for managing their hosting accounts covering email, databases, file management and domain configuration. There are around 70 million domains that use the platform.
WHM sits one level above cPanel and gives hosting providers and server administrators root-level control over the entire server, including the ability to create and manage individual cPanel accounts, configure TLS certificates and set server-wide security policies.
Rapid7 used Shodan to identify roughly 1.5 million internet-exposed cPanel instances. Eye Security reported on LinkedIn that it identified over two million cPanel instances connected to the internet, though it is not known how many of those have auto-update enabled.
The non-profit Shadowserver Foundation reported that shortly after disclosure it found some 44,000 unique IPs scanning, running exploits or engaging in brute force attacks against its honeypot sensors. It also identified around 650,000 IPs hosting exposed cPanel and WHM instances, with 610 located in Australia.
Canada’s Centre for Cyber Security warned in an advisory that the vulnerability could be used to compromise websites on shared hosting servers, including those at large hosting companies.
“Exploitation is highly probable,” the agency stated, adding that immediate action from cPanel customers or their web hosts is necessary to prevent malicious access.
The Australian Cyber Security Centre (ACSC) has issued a critical alert, warning that cPanel installations in the country are under active exploitation and advising organisations to patch as soon as possible.
Related: Best Business Laptops for work & school
Related: Best Gaming Laptops
Related: Best Portable Laptop
Exploited as a zero-day
The vulnerability was being exploited before patches were available, making it a zero-day.
KnownHost CEO, Daniel Pearson, confirmed in a Reddit post that his company had seen attempts to exploit the vulnerability as far back as February 23.
“This has absolutely been used in the wild, and has been seen at least for the last 30 days if not longer,” Pearson wrote.
According to Pearson, around 30 servers at KnownHost showed signs of unauthorised attempted access out of thousands of computers on its network. He likened the activity to probing attempts and told customers he had not seen signs of active compromise.
“At least on our network and the cases I’ve reviewed, any exploit has amounted to ‘let me see if this works’ and then no other changes or attempts past that,” Pearson told customers.
“After a thorough review we’ll reach out to anyone impacted directly, but again I’ve seen no signs of any active compromise, injected payload or anything other than confirming access.”
The disclosure timeline is not entirely clear. According to a webhosting.today source, the vulnerability had been reported to cPanel approximately two weeks before the public advisory, and cPanel’s initial response indicated nothing was wrong. Whether the reporter knew about in-the-wild exploitation remains unclear.
Hosting providers scramble to respond
The disclosure triggered an industry-wide scramble as hosting providers rushed to block access to cPanel and WHM ports while deploying patches.
Web hosting company Namecheap applied a firewall rule to block access to TCP ports 2083 and 2087 as a precautionary measure, temporarily restricting customer access to their cPanel and WHM interfaces until a full patch could be applied.
“Our team is actively monitoring the situation and will apply the official patch across all supported servers as soon as it becomes available,” the company stated. “Access to your control panels will be restored immediately once the patch has been successfully deployed.”
HostGator also confirmed it had patched its systems, describing the flaw as a “critical authentication-bypass exploit.”
HostPapa and InMotion were among other providers that blocked access to cPanel and WHM ports to deploy patches securely.
Benjamin Harris, CEO and Founder of Attack surface management firm watchTowr Labs, underscored the severity of the situation.
“Let’s call this what it is: an unauthenticated authentication bypass in cPanel and WHM, a management-plane solution deployed on tens of thousands of servers and sitting in front of a meaningful chunk of the internet,” Harris told The Hacker News.
“Within hours of the advisory dropping, nearly every major hosting provider on the planet had firewalled their own customers off their own product,” he added, naming hosting.com, Namecheap, KnownHost, HostPapa and InMotion as examples of providers that “pulled the emergency brake because the alternative was watching their entire customer base get owned in real-time.”
First victim reports ransomware
There are early signs of what attackers are doing once they gain access. A small business owner posting on Reddit claimed their company had been hit by ransomware after running a standard cPanel setup, alleging that their hosting provider appeared to be struggling under the weight of the incident. The attackers, they claimed, demanded $7,000 to unlock systems.
The claim is anecdotal, but if it holds up it suggests the bug is already being used by criminals to lock down systems rather than simply lurking or skimming data.
How the exploit works
watchTowr Labs published a detailed technical breakdown of the vulnerability, revealing how inconsistencies in cPanel’s authentication flow can be exploited to bypass login checks.
The analysis found that when a login attempt fails, cpsrvd creates a pre-authentication session file on disk. The session cookie issued to the user contains two parts: the session name and a per-session secret referred to as “ob”, separated by a comma. The ob segment is used to encrypt the password field so it is not stored in cleartext.
However, if an attacker strips the ob segment from the cookie – sending only the session name with no comma – the encoder does not fire. This means the password field is written to the session file in plaintext, and crucially, any CRLF characters within it are preserved.
By crafting an HTTP Basic authentication header with CRLF characters embedded in the password, an attacker can inject arbitrary key-value pairs into the session file. These injected properties can include parameters such as user=root, hasroot=1 and successful_internal_auth_with_timestamp, which are normally set only during legitimate authentication.
The attack involves an additional step to promote the injected values from the raw session file into a JSON cache file that cPanel’s session loader reads on each request. The attacker triggers this by requesting a URL without the required security token, which forces the server to read the raw session file and rewrite the cache with the injected values as top-level keys.
Once the successful_internal_auth_with_timestamp property is present in the session, the server’s password validation is bypassed entirely and the attacker is granted administrative access.
The consequences of compromise
Security firm Hadrian warned that compromising cPanel is materially different from compromising a single customer website.
“WHM grants root administrative access to the server,” the firm noted. “An attacker with this access can read every customer hosting account, modify files and databases, create backdoor accounts, install malware, steal credentials and pivot into customer networks.”
What administrators should do
cPanel’s advisory urged customers to update their servers immediately to one of the patched versions using the cPanel update script (/scripts/upcp –force), verify and confirm the cPanel build version and perform a restart.
Patches have been released in the following cPanel and WHM versions: 11.86.0.41, 11.110.0.97, 11.118.0.63, 11.126.0.54, 11.130.0.19, 11.132.0.29, 11.136.0.5 and 11.134.0.20.
“If your server is not running a supported version of cPanel that is eligible for this update, it is highly recommended that you work toward updating your server as soon as possible, as it may also be affected,” cPanel’s advisory reads.
As interim mitigations, the company recommended blocking inbound traffic on ports 2083, 2087, 2095 and 2096 at the firewall, or stopping the cpsrvd and cpdavd services.
cPanel has released a detection script to help administrators identify compromised systems. Indicators of compromise include sessions containing both token_denied and cp_security_token with a method=badpass origin, pre-authenticated sessions with authenticated attributes, any session with tfa_verified but no valid origin and password fields containing newlines.
Administrators should audit access logs covering the period from approximately late February through to the date patching was confirmed.
watchTowr Labs has also released a Detection Artifact Generator on GitHub to help defenders identify vulnerable hosts in their environments.
Australia’s Digital Pacific struggles to cope
Digital Pacific published the following statement.
Security Advisory: Immediate cPanel Update Recommended for VPS & Dedicated ServersSubscribe
Update – Dear Customers,
As part of ongoing security measures, we have temporarily blocked access to cPanel, WHM, and Webmail ports on servers where the required cPanel patch has not yet been applied.
We strongly request all users to update their cPanel versions on priority to restore normal access.
In the meantime, you can continue accessing your panels using service subdomains, for example:
whm.domainname
cpanel.domainname
webmail.domainname
We appreciate your cooperation in helping maintain a secure environment.
May 01, 2026 – 22:39 AESTMonitoring – Dear Customers,
A critical security vulnerability affecting cPanel & WHM login authentication has recently been identified by the vendor. This issue impacts all currently supported versions of cPanel and may expose servers to unauthorized access if left unpatched.
The good news is that cPanel has now released the official security patch for supported versions. We strongly recommend that all customers using VPS and Dedicated Servers; update to the latest cPanel version at the earliest to avoid any potential impact from this vulnerability.
Action Required:
Please update cPanel to the latest version via WHM or from the server using the standard update process.
For guidance, please refer to the official documentation:
https://docs.cpanel.net/whm/cpanel/upgrade-to-latest-version/
Important Notes:
No known service impact has been reported at this time.
Servers with auto-updates enabled may already receive the patch automatically.
Customers running older / unsupported cPanel versions are strongly advised to upgrade to a supported build immediately, as the vulnerability may also affect those versions.
We recommend applying this update as soon as possible as a precautionary security measure.
Government agencies act
The US Cybersecurity and Infrastructure Security Agency (CISA) added CVE-2026-41940 to its Known Exploited Vulnerabilities (KEV) catalogue, requiring Federal Civilian Executive Branch agencies to apply the patches by May 3, 2026.
cPanel underpins hosting for tens of millions of sites, many operated by small businesses that rely on their providers to handle security. For those users, patching often means waiting for their hosting company to act – a situation that is far from ideal when a flaw of this severity is already being exploited.
Last Updated on June 24, 2026 by Nick Ross



