cPanel CVE-2026-41940: Mass Exploitation of a Two-Month Zero-Day — Hunt Before You Patch
A Line Break Gets Root on 1.5 Million Hosts
CVE-2026-41940 is a pre-authentication session injection in cPanel/WHM and WP Squared. The mechanism is a newline in the password field. That CRLF injection writes attacker-controlled data into the server-side session file. cPanel then promotes the session to authenticated without checking credentials. No MFA bypass. No token theft. A malformed HTTP POST is the entire attack.
Scope, from the public numbers. Rapid7's Shodan sweep: ~1.5 million cPanel instances exposed. Watchtowr: over 70 million domains in the blast radius. CISA added the CVE to the KEV catalog with a May 3 federal remediation deadline. Namecheap blocked ports 2083/2087 across its fleet before customers patched. Hosting providers do not firewall their own control panel unless they have seen the traffic.
This bug was exploited as a zero-day for months before cPanel disclosed it on April 28. The exposure window is not days. It is weeks to months. Treat every pre-patch, internet-exposed instance as presumed compromised.
Gemini CLI CVSS 10 — The CI Runner Is the Sandbox
Inside the same 48-hour window, Google patched a CVSS 10.0 RCE in the Gemini CLI. A malicious .gemini/settings.json file in any cloned repository executes arbitrary commands in headless mode before workspace sandboxing engages. Every PR from a fork, every cloned dependency, every third-party action that invokes Gemini is a potential RCE vector on the runner. SANS's Pescatore put it plainly: "the phrase automatic trust should never be found when involving AI data ingestion."
The fix requires explicit folder trust in Gemini CLI 0.39.1+, which may break existing pipelines. Test, then enforce.
Cross-Source Pattern
Six independent sources covered the two CVEs. They converge on one point: cPanel exploitation predates disclosure by months. Vendor language suggests insiders know more than they are publishing. The gap between "patch available on April 28" and "actively exploited since February" is the forensic priority. Hunt webshells, new admin accounts, cron persistence, and .htaccess modifications across the entire pre-patch window.
Detection Engineering
| Indicator | Where to Look |
|---|---|
| CRLF/newline in cPanel login POST bodies | WAF logs, cPanel access logs |
| Session files authenticated without prior valid login | cPanel session directory |
| New WHM admin accounts created post-February | WHM audit log |
| .gemini/settings.json in cloned repos | CI runner workspace, Action logs |
| Pre-sandbox command execution in Gemini Action logs | GitHub Actions workflow logs |
What to do
Run cPanel's IoC detection script on every managed cPanel instance before patching — capture indicators first, then apply the April 28 fix
Block cPanel management ports 2082/2083/2086/2087 from the public internet permanently; require VPN or bastion for management access
Pin Gemini GitHub Action to 0.39.1+ and audit Action logs for untrusted-fork PR executions in the pre-patch window; rotate all runner-scoped secrets
Sweep subsidiary, marketing, and agency-managed web properties for cPanel instances not in the enterprise CMDB