# cPanel/WHM under attack: an authentication bypass (CVE-2026-41940) seeded ransomware across thousands of servers

- **Published on:** 2026-05-04
- **Category:** Security
- **Original page:** https://linuxgratis.com/en/articles/cve-2026-41940-cpanel-whm-auth-bypass-ransomware-sorry

A critical authentication bypass in cPanel/WHM lets attackers take over the panel with no credentials. It landed in CISA's KEV catalog and was exploited at scale to encrypt sites with the .sorry extension.

---

cPanel and its WHM administration panel run a huge slice of the internet's shared hosting. That is what makes CVE-2026-41940 so alarming: it is an authentication bypass that lets anyone into the panel with no username and no password. Rated CVSS 9.8/9.3, a remote unauthenticated attacker can skip the login and act as the server administrator.

The flaw is classified as CWE-306, missing authentication for a critical function. In plain terms, part of the login flow that should have demanded credentials simply did not. Once inside WHM, an attacker holds the keys to the whole server: customer accounts, files, databases, SSH keys, and scheduled tasks.

## Why it hit so hard

The worrying part was not just the bug, but how fast it turned into a business. CISA added it to its Known Exploited Vulnerabilities (KEV) catalog with a remediation deadline of May 3, 2026, forcing US federal agencies to patch right away. A KEV listing usually means something is being used in real attacks, and that held true here.

In the wild, several groups showed up at once. The most visible deployed a Go-based Linux encryptor that appends the `.sorry` extension to files and demands ransom over Tox. Censys counted 8,859 hosts with files encrypted using that extension, 7,135 of them running cPanel/WHM. In many cases the attackers also wiped backups and left defacement pages demanding 0.1 BTC.

That was not the only payload. A Mirai botnet variant (`nuclear.x86`) targeted cPanel installs to create persistent admin accounts, disable logging, and drop cryptocurrency miners and DDoS bots. Researchers also flagged espionage campaigns against government and military entities in South-East Asia, with victims across the Philippines, Laos, Canada, South Africa, and the US.

## How to tell if you are affected and what to do

If you run an internet-facing cPanel/WHM server, assume you were a target and check the system state:

- Confirm the installed version with `/usr/local/cpanel/cpanel -V` and verify the patch is in place.
- Look in `/var/cpanel/sessions/raw/` for suspicious pre-auth session files.
- Audit WHM for accounts you do not recognize, added SSH keys, or new cron jobs.
- Run cPanel's updated detection script. The first release produced false positives, so make sure you have the latest one.

If you find signs of compromise, patching alone is not enough: the attacker may have already established persistence. Rebuild from a clean backup and rotate every credential on the server. And since the `.sorry` extension comes with backup deletion, check that your copies live somewhere the server itself cannot reach.

This case closely echoes one we covered before: an [authentication bypass in SmarterMail that also ended in ransomware](/en/articles/cve-2026-24423-smartermail-auth-bypass-ransomware). And the weight of CISA's KEV catalog was clear with [MongoBleed](/en/articles/cve-2025-14847-mongobleed-cisa-kev): once a vulnerability lands there, the clock is against you.

## Source

- [Help Net Security — Multiple threat actors actively exploit cPanel vulnerability CVE-2026-41940](https://www.helpnetsecurity.com/2026/05/04/multiple-threat-actors-actively-exploit-cpanel-vulnerability-cve-2026-41940/)
- [NVD — CVE-2026-41940](https://nvd.nist.gov/vuln/detail/CVE-2026-41940)
