Skip to navigation

Threat reportVulnerabilityTL-2026-4956

cPanel & WHM Authentication Bypass via CRLF Session Injection (CVE-2026-41940) Exploited as Zero-Day and Mass-Exploited for Sorry Ransomware

criticalACTIVE

CVE-2026-41940 is a pre-authentication bypass in cPanel & WHM (cpsrvd) that chains an HTTP Basic Authorization header carrying CRLF characters with a malformed whostmgrsession cookie to forge a root session and skip password and 2FA checks. It was exploited in the wild from at least 2026-02-23, two months before the 2026-04-28 patch, and was later used by multiple actors for Sorry ransomware, Mirai botnet deployment and espionage. First disclosed .

Key facts

IdentifiersTL-2026-4956, CVE-2026-41940
Also known ascPanel WHM CRLF session injection auth bypass, Sorry ransomware campaign (cPanel)
SeverityCRITICAL
CVSS9.8
First disclosed
Exploitation statusLinked CVE exploited in the wild; Listed in CISA KEV: CVE-2026-41940 (added )
EPSSCVE-2026-41940: 98.5% (99.9th percentile)
Affected productsWebPros cPanel & WHM; WebPros WP Squared
Weaknesses (CWE)CWE-306
MalwareMirai, Sorry ransomware, nuclear.x86
ToolsMirai, watchTowr-vs-cPanel-WHM-AuthBypass-to-RCE.py
MITRE ATT&CK techniquesT1053.003 Scheduled Task/Job: Cron, T1098 Account Manipulation, T1098.004 Account Manipulation: SSH Authorized Keys, T1136.001 Create Account: Local Account, T1190 Exploit Public-Facing Application, T1490 Inhibit System Recovery, T1496 Resource Hijacking, T1505.003 Server Software Component: Web Shell, T1548.003 Abuse Elevation Control Mechanism: Sudo and Sudo Caching, T1552 Unsecured Credentials, T1556 Modify Authentication Process, T1685 Disable or Modify Tools and 1 more in the attack flow
MotivationFINANCIAL
Target sectorshosting providers, managed service providers, government administration, military, web hosting customers
Target regionsGlobal, South-East Asia, philippines, laos, North America, south africa
Detection rules9 (1 shown free)
Sources10 cited sources

Detection coverage

As of 2026-11-01, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4956 across Splunk SPL, Microsoft KQL and Sigma, covering 10 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: cPanel/WHM CVE-2026-41940 Login Probe Followed by Tokenless /scripts2/ Request

Detects the CVE-2026-41940 (TL-2026-4956) exploit sequence in cPanel/WHM cpsrvd access logs. A source first POSTs /login/?login_only=1 to mint a pre-auth whostmgrsession cookie, then requests /scripts2/listaccts (or another /scripts2/ handler) without a /cpsess security-token prefix. That tokenless request triggers do_token_denied(), which loads the CRLF-poisoned raw session and writes the cache that grants forged root with 2FA skipped. Legitimate WHM traffic always carries the /cpsess token, so the pairing from one source in a 10-minute bucket is high-fidelity.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1190, T1556
  • Data sources: cpanel:access_log (index=cpanel, sourcetype=cpanel:access_log), CommonSecurityLog (WAF/reverse proxy CEF), webserver access logs
  • Severity: critical
  • Confidence: high

Splunk SPL

index=cpanel sourcetype="cpanel:access_log" earliest=-24h
```CVE-2026-41940 step 1 is a failed login probe that mints a pre-auth session. Step 3 is a tokenless /scripts2/ request with no /cpsess prefix that poisons the session cache```
| eval src_ip=mvindex(split(_raw," "),0)
| eval login_probe=if(match(_raw,"POST /login/[?]login_only=1"),1,0)
| eval tokenless_scripts2=if(match(_raw,"(GET|POST) /scripts2/"),1,0)
| eval tokenless_listaccts=if(match(_raw,"(GET|POST) /scripts2/listaccts"),1,0)
| bin _time span=10m
| stats sum(login_probe) as login_probes sum(tokenless_scripts2) as tokenless_requests sum(tokenless_listaccts) as listaccts_requests by _time src_ip
| where login_probes>=1 AND tokenless_requests>=1
| table _time src_ip login_probes tokenless_requests listaccts_requests

Microsoft KQL

let corrWindow = 10m;
let probes = CommonSecurityLog
    | where TimeGenerated > ago(24h)
    | where DestinationPort in (2087, 2086)
    | where RequestMethod =~ "POST" and RequestURL has "/login/" and RequestURL has "login_only=1"
    | project ProbeTime = TimeGenerated, SourceIP, DestinationIP;
let tokenless = CommonSecurityLog
    | where TimeGenerated > ago(24h)
    | where DestinationPort in (2087, 2086)
    | where RequestURL has "/scripts2/" and RequestURL !has "/cpsess"
    | project RequestTime = TimeGenerated, SourceIP, DestinationIP, RequestURL, RequestMethod;
probes
| join kind=inner tokenless on SourceIP, DestinationIP
| where RequestTime between (ProbeTime .. (ProbeTime + corrWindow))
| summarize ProbeCount = dcount(ProbeTime), TokenlessRequests = count(), Urls = make_set(RequestURL, 10), FirstSeen = min(ProbeTime), LastSeen = max(RequestTime) by SourceIP, DestinationIP
| order by LastSeen desc

Sigma

title: cPanel WHM Tokenless Request to /scripts2/ - CVE-2026-41940 Session Injection
id: 3f6a1c52-8d47-4b19-9e2a-7c5d0b1e4a01
status: experimental
description: Detects requests to WHM /scripts2/ handlers without the /cpsessNNNNNNNNNN security token prefix. In the CVE-2026-41940 chain a tokenless request such as /scripts2/listaccts triggers do_token_denied(), which promotes the injected CRLF session lines into the poisoned session cache and yields forged root.
references:
  - https://labs.watchtowr.com/the-internet-is-falling-down-falling-down-falling-down-cpanel-whm-authentication-bypass-cve-2026-41940/
  - https://support.cpanel.net/hc/en-us/articles/40073787579671-Critical-Vulnerability-with-cPanel-WHM-Login-Authentication
author: Threadlinqs Team
date: 2026-11-01
tags:
  - attack.initial-access
  - attack.t1190
  - attack.defense-evasion
  - attack.t1556
  - cve.2026-41940
logsource:
  category: webserver
detection:
  selection:
    cs-method:
      - 'GET'
      - 'POST'
    c-uri|startswith: '/scripts2/'
  condition: selection
falsepositives:
  - Administrators or monitoring scripts that call /scripts2/ endpoints directly without a session token
  - Authorized vulnerability scanners and the public watchTowr detection artifact generator
level: high

Known false positives:

  • Administrators or monitoring scripts calling /scripts2/ endpoints directly without a session token
  • Authorized vulnerability scanners and the public watchTowr detection artifact generator probing the same host

Tuning notes: Forward /usr/local/cpanel/logs/access_log to index=cpanel with sourcetype cpanel:access_log (rename in the search to match your onboarding). Exclude known scanner and monitoring source IPs via a lookup. Tighten the bucket from span=10m to span=2m for higher precision, or raise login_probes to >=3 on very busy shared-hosting servers.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • cPanel/WHM Basic Authorization Header Carrying CR/LF (CVE-2026-41940 Session Injection) · unlock with TL Creds
  • cPanel Host Cron Persistence, Privileged Account Creation and WHM Docroot Script Drop · unlock with TL Creds
  • Sorry Ransomware .sorry File Encryption Burst and cPanel Backup Wiping · unlock with TL Creds
  • Non-cpsrvd Write to cPanel Session Store (Forged WHM Session Tampering) · unlock with TL Creds
  • Credential Harvesting of Cloud Keys and Crypto Wallets on cPanel Host · unlock with TL Creds
  • cpsrvd Spawning Shell or Downloader, and Mirai nuclear.x86 Dropper Execution · unlock with TL Creds
  • cPanel Host SSH authorized_keys and sudoers Backdoor Write (Post-Exploitation Persistence) · unlock with TL Creds
  • cPanel Host Defense Impairment and Mirai nuclear.x86 / Cryptominer Execution · unlock with TL Creds

Indicators of compromise

As of 2026-11-01, Threadlinqs Intelligence tracks 10 indicators of compromise for TL-2026-4956.

10 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

CVE-2026-41940 (CWE-306, reported CVSS 9.8) affects cPanel & WHM and WP Squared. The flaw is in the session handling of cpsrvd. In the Basic authentication handler the attacker-supplied password is passed through set_pass(), which strips only null bytes, and is then stored in the session record via saveSession(). The vendor fix moved the filter_sessiondata() call, which strips CR and LF, into saveSession(), but the Basic-auth code path had bypassed that protection.

WatchTower Labs documented the exploit chain. Step 1: the attacker sends a failed login (POST /login/?login_only=1 to the WHM port 2087) to obtain a pre-authentication whostmgrsession cookie. Step 2: the attacker sends a request with that session cookie truncated, with the ',<obhex>' suffix removed, plus an Authorization: Basic header whose decoded password contains embedded \r\n sequences (for example hasroot=1, tfa_verified=1, user=root, cp_security_token=/cpsessNNNNNNNNNN, successful_internal_auth_with_timestamp=<epoch>). Because get_ob_part() finds no obhex, the session encoder skips encryption and the injected newlines reach /var/cpanel/sessions/raw/<id> in plaintext. Step 3: the attacker requests a protected path such as /scripts2/listaccts without a security token. This triggers do_token_denied(), which reloads the raw session file with nocache and writes the JSON cache, so the CRLF-delimited lines become top-level session keys. Step 4: later requests load the poisoned cache in /var/cpanel/sessions/cache/<id>. docheckpass_whostmgrd() skips password validation when successful_internal_auth_with_timestamp is present, so the attacker is treated as authenticated root with 2FA satisfied.

KnownHost reported in-the-wild exploitation dating to at least 2026-02-23. The flaw was reportedly disclosed to cPanel around 2026-04-14. cPanel published its advisory and patches on 2026-04-28, watchTowr published its analysis and a public PoC / detection artifact generator on 2026-04-29, and CISA added the CVE to the KEV catalog on 2026-04-30. Shadowserver observed more than 44,000 unique cPanel IPs scanning, exploiting or being compromised, and roughly 1.4-1.5 million cPanel instances are internet-exposed (Shodan/Rapid7).

Reported post-exploitation by multiple independent actors includes: the Go-based Linux Sorry ransomware (ChaCha20 with RSA-2048-protected key, .sorry extension, backup wiping, Tox contact), with Censys identifying 8,859 hosts exposing open directories of .sorry files (7,135 running cPanel/WHM); a separate 0.1 BTC extortion and defacement variant; the Mirai variant nuclear.x86 with admin account creation, disabled security logging, firewall changes, cryptomining and DDoS clients; webshells and credential harvesting (crypto wallets, AWS keys, API tokens); SSH key persistence, hidden cron jobs, API tokens and sudoers backdoors; and a Ctrl-Alt-Intel-reported espionage campaign against government, military, MSP and hosting targets in the Philippines, Laos and elsewhere in South-East Asia. Sources differ on the exact affected version lists; this record uses the union of the watchTowr and Arctic Wolf lists.

MITRE ATT&CK techniques by tactic:

Persistence

T1053.003 Scheduled Task/Job: Cron; T1098 Account Manipulation; T1098.004 Account Manipulation: SSH Authorized Keys; T1136.001 Create Account: Local Account; T1505.003 Server Software Component: Web Shell

Initial Access

T1190 Exploit Public-Facing Application

Impact

T1490 Inhibit System Recovery; T1496 Resource Hijacking

Privilege Escalation

T1548.003 Abuse Elevation Control Mechanism: Sudo and Sudo Caching

Credential Access

T1552 Unsecured Credentials

defense-impairment

T1556 Modify Authentication Process; T1685 Disable or Modify Tools; T1686 Disable or Modify System Firewall

Remediation

Patches

  • 11.86.0.41
  • 11.110.0.97
  • 11.118.0.63
  • 11.126.0.54
  • 11.130.0.19
  • 11.132.0.29
  • 11.134.0.20
  • 11.136.0.5
  • WP Squared 136.1.7

Immediate actions

  • Update to a fixed build and verify with /usr/local/cpanel/cpanel -V, then restart cpsrvd
  • Block or restrict inbound access to cPanel/WHM ports 2083, 2087, 2095 and 2096 until patched
  • Run cPanel's published detection script and review /var/cpanel/sessions/raw/ for injected user=root, hasroot=1, tfa_verified=1, successful_internal_auth_with_timestamp and multiple pass= lines
  • Audit for unexpected SSH authorized_keys, cron jobs, API tokens, sudoers entries, new admin accounts and webshells

Workarounds

  • Stop cpsrvd and cpdavd services if patching must be delayed
  • Firewall ports 2083/2087/2095/2096

Longer-term hardening

  • Do not expose WHM/cPanel management ports to the internet; require VPN or IP allowlisting
  • Monitor Authorization: Basic headers containing control characters and requests to /scripts2/ endpoints without a cpsess token
  • Keep offline, immutable backups; rebuild from clean backups when compromise is confirmed

Affected and fixed versions

  • WebPros — cPanel & WHM
    Vulnerable versions: prior to 11.86.0.41; 11.110.0.96 and earlier; 11.118.0.61 and earlier; 11.126.0.53 and earlier; prior to 11.130.0.19; 11.132.0.27 and earlier; 11.134.0.19 and earlier; 11.136.0.4 and earlier
    Fixed in: 11.86.0.41; 11.110.0.97; 11.118.0.63; 11.126.0.54; 11.130.0.19; 11.132.0.29; 11.134.0.20; 11.136.0.5
  • WebPros — WP Squared
    Vulnerable versions: prior to 136.1.7
    Fixed in: 136.1.7

Timeline

  • KnownHost confirms earliest in-the-wild exploitation of CVE-2026-41940 as a zero-day, roughly two months before a patch was available.
  • Vulnerability reportedly disclosed to cPanel about two weeks before the public advisory (approximate date; reported by Help Net Security).
  • cPanel/WebPros publishes its security advisory and releases fixed builds including 11.110.0.97, 11.118.0.63, 11.126.0.54, 11.132.0.29 and 11.134.0.20.
  • watchTowr Labs publishes the root-cause analysis of the CRLF session injection chain and a public PoC / detection artifact generator.
  • CISA adds CVE-2026-41940 to the Known Exploited Vulnerabilities catalog; Shadowserver reports 44,000+ cPanel IPs compromised or scanning/exploiting.
  • Ctrl-Alt-Intel identifies an espionage campaign using CVE-2026-41940 against government, military, MSP and hosting targets in South-East Asia.
  • Censys reports multiple independent actors exploiting the flaw, including Sorry ransomware (8,859 hosts with open .sorry directories; 7,135 cPanel/WHM) and Mirai variant nuclear.x86.

Sources cited

Other reports on CVE-2026-41940

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 10 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats