CVE-2026-41940 is an authentication bypass in cPanel and WHM with a CVSS score of 9.8. By chaining a CRLF injection in the Basic-auth handler with a session-encryption skip and a cookie-cache quirk, an unauthenticated remote attacker can promote a few crafted HTTP requests into full WHM API access — and from there, trivial root RCE.
Disclosed publicly by watchTowr Labs on April 29, 2026, the vulnerability was already being exploited in the wild for roughly two months prior. Within 24 hours of disclosure, multiple unrelated actors weaponised the bug, deploying the Go-based Sorry ransomware, Mirai botnet variants, and full-system wipes across an internet-exposed surface estimated at 1.5 million cPanel instances. Censys observed roughly 8,859 hosts already encrypted with the .sorry extension.
Ctrl-Alt-Intel published research on May 2 detailing a campaign targeting government and military entities in South-East Asia (notably Philippines and Laos) plus MSPs and hosting providers in Canada, South Africa, and the United States.
◈ Table of Contents
Phase 1 — The Vulnerability
CVE-2026-41940The defect lives in cPanel and WHM's Basic-auth handler and the session writer that backs it. cPanel's own NVD entry confirms the affected version range begins after 11.40 and persists through the patched releases issued in late April 2026. Hosting platforms running cPanel/WHM as their administrative back-end are squarely in scope; only customers of cPanel-on-cPanel (the company's own SaaS) are insulated.
| Field | Value |
|---|---|
| CVE ID | CVE-2026-41940 |
| Component | cPanel & WHM — Basic-auth handler / session writer |
| Vulnerability class | Authentication Bypass via CRLF Injection (CWE-93) |
| CVSS 3.1 base | 9.8 (Critical) |
| Authentication required | None — pre-auth, network-reachable |
| Affected versions | cPanel/WHM after v11.40 through pre-patched April 2026 releases |
| Public disclosure | April 29, 2026 (watchTowr Labs) |
| In-the-wild exploitation | ~2 months prior to disclosure (per Help Net Security) |
| Estimated exposed surface | ~1.5 million internet-facing cPanel instances (Shodan) |
cPanel underpins the administrative interface for a large share of shared and reseller hosting providers. A single unpatched MSP or hosting tenant translates into hundreds or thousands of customer sites compromised in a single intrusion.
Phase 2 — Exploit Chain Walkthrough
3 PRIMITIVES, 1 ROOTwatchTowr's analysis decomposes the bug into three chained primitives that, on their own, would be benign. Stitched together, they collapse the entire authentication boundary in a handful of HTTP requests with no credentials.
cPanel's Basic-auth handler does not strip Carriage Return / Line Feed characters from the value supplied in the Authorization request header. Because the header value is later written into a session file, an attacker can inject arbitrary header keys and values — effectively forging fields the application will treat as legitimate session metadata.
cPanel normally encrypts a segment of the whostmgrsession cookie before writing session data to disk. The encryption is gated on the cookie containing all expected segments. By omitting one of those segments, the attacker steers the code into a branch that skips encryption entirely — meaning the CRLF-injected raw value lands on disk verbatim.
The session loader trusts session timestamps as a sign of legitimacy. If a timestamp field is present in the loaded session — exactly the kind of field the CRLF injection allows the attacker to plant — the password validation branch is skipped and AUTH_OK is returned unconditionally. With AUTH_OK, the request is treated as a privileged WHM administrator and full WHM API access is granted.
WHM's legitimate features (custom hooks, package management, PHP-FPM configuration) all run as root. Once the auth boundary is breached, a separate post-exploitation primitive is unnecessary — root RCE is one API call away.
Phase 3 — Exposure & Targeting
SCALE
Shodan scans cited by Picus and others put the internet-exposed cPanel/WHM population at roughly 1.5 million hosts. By April 30, 2026 — one day after public disclosure — at least 44,000 IP addresses were observed scanning honeypots and brute-forcing exploitation against cPanel-style endpoints. Censys observed 8,859 hosts already exposing files with a .sorry extension, of which 7,135 were running cPanel or WHM.
Government & Military (SE Asia)
Ctrl-Alt-Intel telemetry shows targeting of government and military entities in the Philippines and Laos via the same staging server.
MSPs & Hosting Providers
A smaller but high-impact set of MSPs and hosting providers in Canada, South Africa, and the United States are inside the same campaign cluster.
Mass Internet Background
Independent of the targeted campaign, opportunistic scanning is sweeping the open internet looking for vulnerable cPanel banners.
Phase 4 — Post-Exploitation Payloads
SORRY · MIRAI · WIPES
The most prevalent payload observed post-exploit is a Go-based Linux encryptor that appends .sorry to encrypted files and drops a ransom note instructing victims to negotiate via Tox. The Go runtime makes static binaries that drop cleanly onto a wide range of Linux distributions, which suits a campaign opportunistically targeting unrelated cPanel hosts.
| Attribute | Value |
|---|---|
| Family | Sorry |
| Platform | Linux (x86_64 ELF, Go) |
| File extension | .sorry |
| Negotiation | Tox messenger ID dropped in ransom note |
| Confirmed exposed hosts (Censys, May 2026) | 8,859 with .sorry filenames; 7,135 on cPanel/WHM |
Censys also documented Mirai-family botnet variants being deployed onto compromised hosts, plus a third bucket of intrusions where attackers simply wipe entire websites and their backups. The wipe behaviour is consistent with hacktivist or destructive actors riding the same exploit; the payload diversity confirms the bug is being weaponised by multiple unrelated crews simultaneously.
Phase 5 — Indicators of Compromise
IOC
Ctrl-Alt-Intel released indicators tied to the staging-server cluster. Censys publishes additional host-level indicators tied to .sorry-tagged hosts. For specific hash values, IPs, and domains, consult the original publications below — those operational artefacts change rapidly and re-publishing them risks staleness.
| IOC Type | Pattern | Notes |
|---|---|---|
| File extension | .sorry | Suffix appended to encrypted files by Sorry ransomware. |
| Filesystem | Ransom note in directories with newly created *.sorry files | Note instructs Tox-based negotiation. |
| HTTP request shape | Authorization header containing \r\n (CRLF) | Pre-exploit fingerprint at the Basic-auth handler. |
| Cookie shape | Malformed whostmgrsession with missing trailing segment | Triggers encryption-skip branch. |
| Web shells / backdoors | WHM custom hooks, PHP-FPM config drops, package post-install scripts | Legitimate WHM features abused for persistence. |
| Network | Spike in unauthenticated requests to /whm/* and /cpanel/* from new ASN sources | Coincides with mass scanning activity April 30 onward. |
Phase 6 — Detection & Hunt Queries
DETECTION ENGINEERING
The strongest pre-exploit signal sits in raw web-server logs (Apache or Nginx fronting cPanel). Look for unusual byte sequences in the Authorization header and unexpected shapes of the whostmgrsession cookie. The two patterns below are tuned tight — false-positive rate should be near zero on a normal cPanel host.
For environments shipping web logs into Sentinel, the same logic translates directly into KQL. Adjust the table reference to match your ingestion (CommonSecurityLog, W3CIISLog, Custom CEF parser, etc.).
◉ What These Queries Surface
- Mass scanning bursts hitting /whm/* and /cpanel/* from previously unseen ASNs
- Targeted exploitation attempts with embedded CRLF in Authorization
- Session-cookie probes preceding successful WHM API access
- Internal hosts sending these patterns — high signal of compromised neighbour
Phase 7 — Mitigation & Patching
REMEDIATION- 1Patch immediately. cPanel released fixed builds in late April 2026 covering the supported TIERs. Subscribe to cPanel's security feed and apply the latest 11.126.x / 11.128.x / 11.130.x update for your release channel.
- 2Compromise-assess every cPanel host with internet exposure since February 2026. In-the-wild exploitation predates the patch by approximately two months — patching alone does not invalidate prior intrusion.
- 3Inventory and rotate credentials for any account stored in or accessible via WHM (database creds, API tokens, billing-system links, FTP accounts, mail accounts).
- 4Audit WHM custom hooks, package post-install scripts, and PHP-FPM configurations for newly added entries since February — these are the legitimate WHM features attackers turn into root persistence.
- 5Restrict WHM access to a management VPN or IP allowlist where possible. There is no business case for unauthenticated WHM access from the public internet.
- 6Hunt for
.sorryfilenames across hosted customer directories — Censys's footprint suggests many Sorry victims are still unaware.
If a host shows signs of cPanelSniper-style probing or a malformed whostmgrsession cookie in historical logs, treat it as compromised until proven otherwise. The exploit chain leaves a thin pre-exploit forensic footprint.
Phase 8 — MITRE ATT&CK Mapping
TTPs| Tactic | Technique | How it manifests |
|---|---|---|
| Initial Access | T1190 Exploit Public-Facing Application | cPanel/WHM authentication bypass via CVE-2026-41940 |
| Execution | T1059 Command and Scripting Interpreter | WHM custom hooks invoke shell scripts as root |
| Persistence | T1546 Event Triggered Execution | Custom hooks executed on package events |
| Persistence | T1136 Create Account | New WHM admin or system accounts created via API |
| Defense Evasion | T1036 Masquerading | Abuse of legitimate WHM features (PHP-FPM, package mgmt) |
| Discovery | T1083 File and Directory Discovery | Pre-encryption host enumeration by Sorry binary |
| Impact | T1486 Data Encrypted for Impact | Sorry ransomware encryption with .sorry extension |
| Impact | T1485 Data Destruction | Full website + backup wipe observed in subset of cases |
| Resource Development | T1584 Compromise Infrastructure | Mirai variants pivoting compromised hosts into botnets |
Phase 9 — Sources
PRIMARY REFERENCESCVE-2026-41940 is the kind of bug that defines a quarter for SOC teams. The auth boundary is gone, the post-exploit toolkit is the product's own legitimate features, and the exposed surface is measured in millions. Patching is necessary but not sufficient — every cPanel host with February-onward exposure deserves a compromise assessment.
Run our IOC Scanner against your hosting tenants, share the Sigma rules above with your detection team, and subscribe to CyberHawk's threat intel feed for follow-up coverage as the Sorry campaign evolves.
◈ Stay Connected
Follow CyberHawk Threat Intel for threat intelligence, deployment guides and hands-on SOC tooling content.
"They can't exploit you if you are the Exploit."