CPanel & WHM CVE-2026–41940: The Authentication Bypass That Turned Hosting Servers Into Attack Surface
An authentication bypass in cPanel & WHM allowed unauthenticated attackers to forge an authenticated session and gain administrative access to the hosting control plane. Attackers could then control the server, its databases, and all hosted websites, with public reports of ransom-note defacements.
CVE-2026–41940 is a critical authentication bypass vulnerability affecting cPanel & WHM and WP Squared. cPanel disclosed the issue on April 28, 2026, describing it as an authentication bypass affecting cPanel software, including DNSOnly, across versions after 11.40. The vendor released emergency patches and provided…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a CRLF injection in cPanel's session handling, where attacker-controlled input written to a pre-authentication session file introduces line breaks that let an attacker inject arbitrary session attributes, which are later trusted as authenticated state.
Impact
An unauthenticated attacker could gain administrative control over the cPanel host, its configurations, databases, and managed websites, potentially affecting all hosted accounts on the server; public reports show ransom-note defacements and suspected full-server compromise.
What the attacker needed
CPanel/WHM version after 11.40 and before fixed build; Network access to cPanel/WHM login interface; No authentication required
The fix
The vulnerability was fixed by cPanel in emergency patches; administrators should update using the cPanel update script, verify the version, and restart cpsrvd.
How it was found
- Interact with the cPanel/WHM login flow to cause the server to create a pre-authentication session file.
- Supply crafted input that introduces line breaks into the session data, influencing how session attributes are interpreted.
- Trigger a second request path that reloads and rewrites the session file, promoting injected values to trusted session state.
- Reuse the resulting session token to access cPanel/WHM as an authenticated administrator.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a flaw in the login system of cPanel & WHM, software that runs web hosting servers. An attacker could trick the server into thinking they had already logged in, without needing a password. Once inside, they could take over the whole server and all the websites on it.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.