cPanel security in 2026 and the WHM login bypass

What the 2026 cPanel and WHM authentication bypass means for hosts, with fixed versions, how to check and patch a server, what to scan for and how to harden it.

RespireCloud Team 8 min read Security

Key takeaways

  • CVE-2026-41940 is an authentication bypass in cPanel and WHM's login and session layer, patched on 28 April 2026 and added to CISA's Known Exploited Vulnerabilities catalog on 30 April 2026.
  • Fixed builds are 11.110.0.97, 11.118.0.63, 11.126.0.54, 11.132.0.29, 11.134.0.20 and 11.136.0.5 or later on the current branches, and WP Squared 11.136.1.7 or later.
  • Update first, then run cPanel's own detection script over the session files. A server that was unpatched at any point in the window should be treated as possibly accessed.
  • Closing the panel ports (2086, 2087, 2082, 2083, 2095, 2096) to everyone except your own addresses removes the login page from the internet, whatever the next bug is.

In late April 2026 cPanel and WHM had the kind of bug every hosting provider dreads: a way to reach the administration panel without a password. This post sets out what is known, with each fact traced to cPanel, the US National Vulnerability Database (NVD) or CISA, what to do on a server today, and how to make the next bug of this kind matter less. It is written on 2 November 2026 and the facts can change, so follow the links to the vendor pages before you act.

What happened and when

CVE-2026-41940 is an authentication bypass in the login flow of cPanel and WHM. NVD describes it as a flaw that "allows unauthenticated remote attackers to gain unauthorized access to the control panel" and files it under CWE-306, missing authentication for a critical function. NVD published the record on 29 April 2026 and lists a CVSS 4.0 base score of 9.3 (critical), set by VulnCheck. cPanel's own write-up quotes a CVSS score of 9.8 from VulnCheck, which is the older scoring system, so you will see both numbers in articles. Both mean the same thing: network reachable, no login, no user interaction, full impact.

The timeline from cPanel's response post of 10 May 2026:

  • 27 April: cPanel confirmed and classified the vulnerability and started incident response.
  • 28 April: the support article (knowledge base 40073787579671) was published and updated builds followed the same day, about 28 hours after confirmation.
  • 29 April: cPanel emailed partners and customers and published a detection script for indicators of compromise.
  • 1 May: a second email with wider version coverage, and a refinement of the script.

CISA added the flaw to its Known Exploited Vulnerabilities catalog. The catalog's data file I read on 2 November 2026 gives the date added as 30 April 2026, a due date of 3 May 2026 for US federal agencies, and "Known" in the field that says whether ransomware groups use it. (cPanel's post says 1 May; the catalog says 30 April, and the catalog is the authority.) The required action reads: apply mitigations per vendor instructions, or discontinue use of the product if mitigations are unavailable.

What the bug was

cPanel's explanation is short. Two code paths write session files to disk. One of them cleaned the input first; the second, used while handling Basic authentication, did not. A specially crafted request could therefore make an unauthenticated session count as authenticated.

The security firm watchTowr published its own analysis on 29 April 2026 after comparing a patched and an unpatched build. It reports that the fix touched the session saver, the session loader and the encoder, and that the sanitising of carriage return, line feed and equals characters moved inside the function that saves a session, so no caller can forget it. We do not repeat exploit steps here. The useful lesson for operators is general: a login system that keeps its state in plain files on disk turns every missing filter into a path to administrator.

Who was affected

cPanel says the flaw affects every version after 11.40, and WP Squared up to 11.136.1.6. NVD lists the first fixed build on each branch:

Branch Fixed in
11.86 11.86.0.41
11.94 11.94.0.28
11.102 11.102.0.39
11.110 11.110.0.97
11.118 11.118.0.63
11.124 11.124.0.35
11.126 11.126.0.54
11.130 11.130.0.19
11.132 11.132.0.29
11.134 11.134.0.20
11.136 11.136.0.5
WP Squared 11.136.1.7

Source: NVD's record for CVE-2026-41940, read on 2 November 2026. cPanel also delivered targeted fixes for older versions (86, 94, 102, 124 and 130) and an automatic fixer for CloudLinux 6 servers, so an old server is not necessarily left out. If your branch is not in the table, read cPanel's support article for it.

cPanel reports that over 98% of servers worldwide were on an updated version by 10 May 2026. That is a vendor statement, and it leaves a small share still exposed, which is exactly the share attackers look for.

Was it exploited before the patch

Yes, according to the press. BleepingComputer reported on 2 May 2026 that the flaw was exploited as a zero day, with attempts going back to late February. It quotes Shadowserver as counting at least 44,000 IP addresses running cPanel that had been compromised, and describes a Go based Linux ransomware called "Sorry" that adds the .sorry extension to encrypted files and leaves a README.md note. cPanel's own post says it received two reports during April, could not reproduce the first, and confirmed the second the same day it arrived. Treat the press numbers as reports, not as a count you can verify, but the direction is clear.

This matters for how you read your own logs: "I patched on 29 April" does not by itself prove "nobody got in".

How to check and patch a server

  1. Find the version. As root, run /usr/local/cpanel/cpanel -V. Compare it with the table.
  2. Update. Run /scripts/upcp as root to pull the latest build for your release tier. If automatic updates are off (/etc/cpupdate.conf), switch them on afterwards. If your host manages the licence, ask them to confirm the build rather than assuming.
  3. If you cannot update yet, cPanel's article describes interim mitigations: blocking the cpsrvd ports and applying a ModSecurity rule. These are stopgaps. Use them only until the update is possible.
  4. Run cPanel's detection script from the support article over the session files. The script scans for attributes tied to this attack. It was refined on 1 May to remove a false positive on session.lock files, so download the current copy rather than a saved one.
  5. Read the result honestly. A clean scan after an unpatched window is good news, not proof. Session files are short lived, so the script may not see what happened weeks ago.

If the server was exposed

Assume that a root level panel session means everything the panel can do: create accounts, read and change mail and DNS, reset passwords, run commands as root through the panel's tools. General good practice after a possible admin compromise, none of which is specific to cPanel:

  • List WHM users, resellers and API tokens, and remove any you did not create.
  • Check root's and each account's authorized_keys, cron jobs, and new accounts or packages.
  • Rotate the root password, reseller passwords, API tokens and any database or mail credentials stored on the server.
  • Look at outbound mail volume and new files in site folders, especially upload directories.
  • If anything looks wrong, rebuild from a known good state rather than cleaning in place. Restore data, not the operating system, and keep logs from the old box.
  • If your customers' data may have been touched, find out what your legal duty to tell them is in the countries you serve.

Harden the panel so the next bug costs less

Patching fixes this bug. Network design decides how bad the next one is.

  • Do not leave the panel on the open internet. WHM listens on 2086 and 2087, cPanel on 2082 and 2083, webmail on 2095 and 2096. Allow them only from your office or a VPN address, and let customers reach their sites on 80 and 443. Customers who need cPanel from anywhere are a business decision, but admin access rarely is.
  • Keep two ways in for yourself. Closing ports by firewall can lock you out. Keep SSH keys and a console login from your provider.
  • Turn on automatic security updates for both cPanel and the operating system, and watch cPanel's security feed.
  • Log and alert on new root sessions and on logins from addresses you do not know.
  • Keep backups off the server and test a restore. Ransomware that encrypts the server also encrypts a backup sitting on the same disk.
  • Layer the basics from our guide to hardening a Linux hosting server: SSH keys, a firewall, fail2ban and per site isolation.

One caution from reasoning rather than from a source: because this bug sits in the session handling around the login, a stronger login (for example two factor codes) may not stop it. I found no cPanel statement either way. Restricting who can reach the port does not depend on that code, which is why it comes first on the list.

Should one bug make you leave cPanel

Not by itself. Every panel that runs as root and listens on the internet has had critical bugs, and cPanel responded within about a day and drove patch adoption high. What the episode shows is the cost of a management plane that anyone can reach and of fleets that patch slowly. If you are weighing a move for other reasons, such as price, our cPanel pricing for 2026 and list of alternatives set out the facts, and the migration page explains how an import with a preview works.

Where RespireCloud fits: it is a different, newer product with different code, not a copy of cPanel, and no panel is immune to bugs. We describe how we approach isolation, sign-in and updates on our security page, and write down what is built, audited and still open. If you stay on cPanel, the steps above are what matters this week.

Sources checked on 2 November 2026

Questions

Which cPanel versions are affected by CVE-2026-41940?

cPanel says every version after 11.40 is affected, and WP Squared up to 11.136.1.6. NVD lists the fixed builds per branch, for example 11.110.0.97, 11.118.0.63, 11.126.0.54, 11.132.0.29, 11.134.0.20 and 11.136.0.5.

Is CVE-2026-41940 being exploited?

Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 30 April 2026 and marks it as used in ransomware campaigns. Press reports describe attacks starting before the patch.

How do I check which cPanel version my server runs?

Run /usr/local/cpanel/cpanel -V as root. It prints the installed version, which you compare with the fixed builds for your branch. WHM also shows the version at the top of its home page.

Does two factor login protect me from this bug?

I found no statement from cPanel that it does. The flaw is in how sessions are handled around the login, so do not rely on the login alone. Restricting who can reach the panel ports works regardless of the login code.

I patched on 1 May. Do I still need to scan?

Yes. cPanel says any server that was unpatched at any point during the incident window should be scanned with the current version of its detection script, because an attacker may have created access before you updated.

cPanelWHMSecurityCVEPatching
Share LinkedIn X Email

RespireCloud Team

The people who build RespireCloud

The engineers and testers behind RespireCloud write here about what the panel does, how it is built and what we found when we tried to break it. Every claim links to the feature it describes.

More posts by RespireCloud Team

See it on a real server.

The free plan covers 1 account, 3 sites and 5 mailboxes on one server, with the whole base product. Or ask us for a walk through.