cPanel and WHM flaw CVE-2026-41940: ask your host
A login bypass in cPanel and WHM was exploited before its 28 April fix, then used for ransomware. What a small office on shared hosting should ask.
Published · 3 min read

On 28 April WebPros, which owns cPanel and WHM, released an emergency fix for CVE-2026-41940, a flaw in the login flow that lets an attacker with no password into the control panel. The two are among the most widely deployed hosting control panels: WHM runs a whole server, and cPanel each hosting account on it, with its website, databases and webmail. The flaw had been exploited before the fix, and by 2 May it was being used to encrypt websites for ransom. For an office whose website and email sit with a host, the question is not whether you patched. It is whether your host did, and when.
What an attacker got, and when
Access to cPanel means control of everything in that hosting account: the site, its data and its email, and the passwords kept in its configuration files. Access to WHM means the whole server and every site on it, BleepingComputer explained. The chief executive of KnownHost, a hosting company, said it had seen attempts to exploit the flaw as early as 23 February, two months before the fix, and Namecheap blocked access to the panels' ports to protect its customers until patches were out. CISA added the flaw to its catalogue of known exploited vulnerabilities on 30 April, and New Zealand's NCSC warned of reports of active exploitation on 1 May.
Then came the ransomware. On 2 May BleepingComputer reported attackers using the flaw since 30 April to install the "Sorry" ransomware on Linux servers, whose encryption, one ransomware researcher said, cannot be undone without the attacker's private key. Shadowserver, a security monitoring group, counted at least 44,000 compromised IP addresses running cPanel. CISA's entry, read in November, lists the flaw as known to be used in ransomware campaigns.
Why the host's patch is your risk
On shared hosting you do not run the server, and you do not decide when it is patched. Your website, your mailboxes and the forms on your site sit on a machine shared with other customers, updated on someone else's schedule. Patching closes the door without removing anything that came through it before. cPanel's guidance, as BleepingComputer reported it, was to run its detection script and, if it found signs of compromise, purge sessions, reset every credential, audit the logs and look for anything left behind to keep access. A server on a version cPanel no longer supports gets no fix at all.
Whoever builds or runs your website and systems, two things should be true. The hosting account should be in your organisation's name, with its logins held by someone on your staff, so that when an advisory like this one lands you know whom to ask. And anything holding personal records needs more care than a brochure site on a shared server can give it, starting with a copy of its data that the host cannot reach.
Five questions for your host
- Which version of cPanel and WHM is our server on, and on what date was it patched for CVE-2026-41940?
- Did you run cPanel's detection script, and what did it find?
- If there were signs of compromise, which of our passwords should we change, and have you cleared the sessions?
- Is our server on a version cPanel still supports, and if not, when does it move?
- Where are our backups, and do we hold a copy the host cannot reach? Against ransomware that cannot be decrypted, that copy is the only way back.
If the answers are slow to come, or nobody in your office knows who holds the hosting login, start there. And if something your office depends on lives on that shared server, the fit check is a good place to talk about where it should live instead.
Sources
- Cybersecurity and Infrastructure Security Agency (CISA), Known Exploited Vulnerabilities Catalog, 30 April 2026
- National Cyber Security Centre, New Zealand, Authentication bypass vulnerability in cPanel and WHM, 1 May 2026
- BleepingComputer, cPanel, WHM emergency update fixes critical auth bypass bug, 29 April 2026
- BleepingComputer, Critical cPanel and WHM bug exploited as a zero-day, PoC now available, 30 April 2026
- BleepingComputer, Critrical cPanel flaw mass-exploited in "Sorry" ransomware attacks, 2 May 2026
Enrique Lacambra III builds internal business systems from Cainta, Rizal.
Tell me what is broken and I will tell you if it is worth building. A 20-minute call, no charge, and I will say so if you do not need me.
