
Proof-of-concept code demonstrating CVE-2026-41940, providing a reproducible test case for vulnerability verification and security research.
π‘οΈ AI Security Tool Module
CVE-2026-41940: cPanel & WHM Unauthenticated Root RCE (CRLF Session Injection)
Official Security Audit & Exploitation Module for AI Security Tool Ecosystem
π Web Demo β’ π Project Website β’ π¬ Community Chat
Website Navigation: Home β’ Updates β’ Downloads β’ Modules
This module delivers comprehensive diagnostic tools and technical assessment routines for CVE-2026-41940, a critical unauthenticated authentication bypass vulnerability in cPanel & WHM (CVSS 10.0). By leveraging improper CRLF sequence handling within the HTTP Authorization header parser during premature session initialization, an attacker can manipulate server-side session files and achieve full root-level WHM authorization without valid credentials.
"Control the session, own the host."
Because WHM interfaces operate directly under administrative privileges, authentication bypass vectors on management ports (2083/2087) represent immediate full-compromise risks across Web Host Manager installations.
| Specification | Assigned Value | Notes |
|---|---|---|
| CVE Identifier | CVE-2026-41940 |
cPanel & WHM Session Header Injection Bypass |
| Severity Rating | Critical (CVSS v3.1: 10.0) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| Vulnerability Type | CWE-113 / CWE-287 |
CRLF Injection & Authentication Bypass |
| Affected Component | cPanel & WHM Session Daemon (cpsrvd) |
HTTP Authorization header parsing engine |
| Attack Vector | Network (TCP 2083 / 2087) | Unauthenticated crafted HTTP authorization request |
| Privileges Required | None | Zero user authentication or interaction required |
graph TD
A[Unauthenticated Attacker] -->|Crafted Authorization Header with CRLF| B[cPanel / WHM Service]
B -->|Premature Session File Generation| C[Inject Parameters into Session Data]
C -->|Bypass Credential Validation| D[Grant Elevated WHM Administrative Token]
D -->|Post-Exploitation Actions| E[Full System Root Compromise]
| Branch | Vulnerable Version Range | Patched Version |
|---|---|---|
| 110.x | β€ 11.110.0.96 |
11.110.0.97 |
| 118.x | β€ 11.118.0.62 |
11.118.0.63 |
| 126.x | β€ 11.126.0.53 |
11.126.0.54 |
| 132.x | β€ 11.132.0.28 |
11.132.0.29 |
| 134.x | β€ 11.134.0.19 |
11.134.0.20 |
| 136.x | β€ 11.136.0.4 |
11.136.0.5 |
Splunk Enterprise Query:
index=cpanel sourcetype=cpanel_access_log
| rex field=_raw "(?i)authorization:\s*(?[^\r\n]+)"
| where match(auth_header, "[\r\n]") OR match(auth_header, "%0D%0A")
| stats count by clientip, http_user_agent, uri_path, auth_header
| sort - count
Microsoft Sentinel Query:
CommonSecurityLog
| where DeviceVendor =~ "cPanel" or DeviceProduct has "WHM"
| where AdditionalExtensions has "Authorization"
| where AdditionalExtensions matches regex "(\r\n|\n|\r|%0D%0A)"
| summarize EventCount = count(), IPs = make_set(SourceIP, 10) by bin(TimeGenerated, 5m), DeviceName
| where EventCount > 0
\r, \n) from all inbound authorization headers.