Criminals can break into servers of an estimated 70 million domains without a password, due to a critical bug in cPanel and WHM. This allows them to bypass authentication.
A critical bug affects cPanel software. An estimated 70 million domains are thought to be vulnerable without a patch to attackers, who can bypass authentication to take over servers. An emergency patch is now available, although exploitation in the wild has already been ongoing for some time.
What are cPanel and WHM?
cPanel is a very popular control panel for web hosting. The software is responsible for managing servers, mail, and domains via a graphical interface. The tool is aimed at end users such as website administrators.
Hosting companies also use cPanel, and more specifically the WHM (Web Host Manager) component. cPanel handles the management of individual websites, while WHM gives the hosting provider the tools to manage customers’ domains. If the internet were an apartment building, you could see cPanel as the keys used by the tenants of individual apartments. WHM is the keychain that gives the landlord access to the entire building.
What’s the Problem?
CVE-2026-41940 is a new and critical bug affecting both cPanel and WHM. The CVSS score of 9.3 is well-founded. The bug allows attackers to bypass authentication on all supported versions of the management platform. In other words: both the landlord’s keychain and all the tenants’ individual keys are up for grabs.
Both the landlord’s keychain and all the tenants’ individual keys are up for grabs.
CVE-2026-41940 involves an error in loading and saving sessions. WatchTowr describes an attack where an attacker first creates a preliminary session via a failed login. They can then inject extra lines into the session file via a manipulated basic authentication header, because cPanel did not sufficiently filter input at that location.
Normally, that is not immediately enough for access, because cPanel also uses a cache file with session data. However, the researchers found a second step where the software re-reads and writes the raw session data. As a result, injected fields such as administrator rights and a valid authentication timestamp appear as legitimate session values.
Subsequently, WHM skips a standard password check. The result is potentially disastrous: according to the research, an attacker can impersonate root without knowing the actual password. This gives a hacker access to the entire server, including SSL certificates and databases.
Theoretical bug or practical exploitation?
The attack is not merely theoretical. Daniel Pearson, CEO of hosting specialist KnownHost, confirms that attacks have been ongoing for at least thirty days. cPanel has since launched an emergency patch. All versions of cPanel and WHM prior to that patch are susceptible to the authentication bug. For those using cPanel, there is, in other words, no higher priority than updating. cPanel has meanwhile published a script that allows users to check if they have already fallen victim to an attack.
cPanel is a popular solution. The company itself points to major players such as OVHcloud, Team.blue, and GoDaddy as customers. WatchTowr knows that at least 70 million domains worldwide are managed by cPanel and WHM, although we cannot verify that figure ourselves. That cPanel has a huge market share, and a bug opens the back door to millions of websites worldwide, is beyond dispute.
High risk
That makes the risk all the greater: the broader the usage, the greater the chance that administrators will not patch their software in time. At this moment, exploitation in the wild seems reasonably limited. Details on how the attack should be carried out specifically are not yet publicly available. However, there are criminals who already have the knowledge, and it won’t be long before the exploit becomes more widely available.
This bug fits into an ever-growing list of vulnerabilities in the IT chain. Bugs are increasingly affecting companies that are in turn integrated with customers worldwide. Thus, a single bug in one piece of software quickly grows into a global problem.
