CrowdSecLive Exploit Tracker
Background NoiseCVE-2026-41940Public Exploit

cPanel & WHM - Authentication Bypass (CVE-2026-41940)

PublishedApr 29, 2026
First SeenMay 4, 2026
Last Seen
Reported
CVSS9.8
management_panel

Description

cPanel and WHM contain an authentication bypass vulnerability in the login flow caused by CRLF injection in session file handling. The cpsrvd daemon writes session files to disk before authentication occurs, and an attacker can manipulate the whostmgrsession cookie and inject crafted lines via a malicious Basic Authorization header. The system writes the session file without sanitizing the data, allowing the attacker to insert arbitrary session properties such as user=root, achieving full administrative access without credentials.

psychologyCrowdSec Analysis

CVE-2026-41940 is a critical authentication bypass vulnerability in cPanel & WHM affecting all supported versions prior to the April 28, 2026 patch. The flaw stems from a CRLF injection in the session file handling of the cpsrvd daemon, allowing unauthenticated remote attackers to inject arbitrary session properties — including root-level privileges and 2FA bypass flags — into pre-authentication session files. Successful exploitation grants full administrative control over WHM, enabling attackers to manage all hosted websites, databases, email accounts, SSL certificates, and server configurations without any credentials.

CrowdSec has been tracking this vulnerability and its exploits since 30th of April 2026.

According to CrowdSec data, while opportunistic exploitation dominates, a portion of threat actors trying to exploit CVE-2026-41940 apply basic targeting methods such as port or service detection. This indicates emerging patterns of selective targeting. CrowdSec data also reveals a clear uptick in attacks involving CVE-2026-41940 over the past week. Activity is above the usual baseline, suggesting growing attention from attackers. This may reflect rising awareness, recent exploit releases, or expanded targeting efforts.

Attackers exploit the /login/?login_only=1 endpoint by sending a failed login POST to obtain a pre-authentication session cookie, then submit a follow-up request with a crafted Authorization: Basic header containing CRLF-injected session directives (user=root, hasroot=1, tfa_verified=1) to promote the session to fully authenticated root access on WHM port 2087.

lock

Full Intelligence Available

Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.

EventDate
CVE Published2026-04-29
Rule Released2026-04-30
CISA KEV2026-04-30
CISA Remediation Deadline2026-05-03
CrowdSec First Seen2026-05-04

Remediation & Protection

lock to download blocklists, subscribe to firewalls, and access IP intelligence.