Threat reportVulnerabilityTL-2026-1862
CVE-2026-58048 — cPanel & WHM Database Privilege Escalation via Database Rename (SQL Mode Loss)
A critical privilege escalation vulnerability in cPanel & WHM (all supported version tiers) and WP Squared allows an authenticated low-privileged cPanel user to escalate to full database administrator access by renaming a database. The SQL mode is not preserved during the rename, enabling SQL commands to execute with root-level database authority.
Key facts
| Identifiers | TL-2026-1862, CVE-2026-58048 |
|---|---|
| Also known as | GHSA-xgvx-cwxw-9vpj |
| Severity | CRITICAL |
| CVSS | 9.4 (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H) |
| EPSS | CVE-2026-58048: 0.5% (40.2th percentile) |
| Affected products | WebPros (cPanel) cPanel & WHM; WebPros (WP Squared) WP Squared Managed WordPress |
| Weaknesses (CWE) | CWE-89 |
| Tools | MySQL/MariaDB database server, WP Squared Managed WordPress (vulnerable builds), cPanel & WHM (vulnerable builds), cPanel Feature Manager (WHM) |
| MITRE ATT&CK techniques | T1005 Data from Local System, T1048 Exfiltration Over Alternative Protocol, T1059 Command and Scripting Interpreter, T1082 System Information Discovery, T1087 Account Discovery, T1485 Data Destruction, T1505 Server Software Component, T1552 Unsecured Credentials, T1560 Archive Collected Data, T1565 Data Manipulation, T1685 Disable or Modify Tools |
| Motivation | UNKNOWN |
| Target sectors | web-hosting, managed-wordpress, cloud-infrastructure, saas, shared-hosting, reseller-hosting |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 7 cited sources |
Detection coverage
As of 2026-08-04, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-1862 across Splunk SPL, Microsoft KQL and Sigma, covering 5 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: Post-Exploitation Database Root-Level SQL Commands — Privilege Escalation
Detects suspicious SQL commands executed in root database context following cPanel database rename operations, indicating post-exploitation activity from CVE-2026-58048. After successful SQL mode loss exploitation, attackers execute CREATE USER, GRANT ALL PRIVILEGES, DROP DATABASE, or ALTER USER statements to establish persistence, escalate privileges, or destroy data.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1505.001, T1685, T1565.001, T1485, T1552.001
- Data sources: mysql_audit_log, mysql_error_log, cpanel_daemon_log
- Severity: critical
- Confidence: high
Splunk SPL
index=linux sourcetype=mysql_audit
("CREATE USER" OR "GRANT ALL" OR "DROP DATABASE" OR "TRUNCATE TABLE" OR "ALTER USER")
| eval threat_id="TL-2026-1862", cve="CVE-2026-58048"
| eval severity="critical", confidence="high"
| eval post_exploit_type=case(
match(query,"(?i)GRANT ALL"),"privilege_escalation",
match(query,"(?i)CREATE USER"),"persistence_backdoor_account",
match(query,"(?i)DROP DATABASE"),"data_destruction",
match(query,"(?i)TRUNCATE TABLE"),"data_destruction",
match(query,"(?i)ALTER USER"),"credential_manipulation",
1=1,"other")
| stats count by _time, host, user, post_exploit_type, query
| where count < 5
| table _time, host, user, post_exploit_type, query, count
| sort -_timeMicrosoft KQL
Syslog
| where TimeGenerated > ago(48h)
| where SyslogMessage matches regex @"(?i)(CREATE\s+USER|GRANT\s+ALL\s+PRIVILEGES|DROP\s+DATABASE|TRUNCATE\s+TABLE|ALTER\s+USER)"
| extend ThreatId = "TL-2026-1862"
| extend Cve = "CVE-2026-58048"
| extend PostExploitType = case(
SyslogMessage matches regex @"(?i)GRANT ALL", "privilege_escalation",
SyslogMessage matches regex @"(?i)CREATE USER", "persistence_backdoor_account",
SyslogMessage matches regex @"(?i)DROP DATABASE", "data_destruction",
SyslogMessage matches regex @"(?i)TRUNCATE TABLE", "data_destruction",
SyslogMessage matches regex @"(?i)ALTER USER", "credential_manipulation",
"other")
| project TimeGenerated, HostName, SyslogMessage, ThreatId, Cve, PostExploitType
| sort by TimeGenerated descSigma
title: Database Root Privilege Escalation via cPanel Daemon — Post-Exploitation
description: Detects suspicious SQL commands (CREATE USER, GRANT ALL, DROP DATABASE, TRUNCATE TABLE) executed in database root context, indicating post-exploitation activity from CVE-2026-58048 cPanel privilege escalation
id: b2c3d4e5-f6a7-8901-bcde-f12345678901
status: experimental
references:
- https://nvd.nist.gov/vuln/detail/CVE-2026-58048
- https://www.cve.org/CVERecord?id=CVE-2026-58048
- https://support.cpanel.net/hc/en-us/articles/42285745783703-CVE-2026-58048-Database-Privilege-Escalation
author: Threadlinqs Team
date: 2026-08-04
tags:
- attack.persistence
- attack.t1505.001
- attack.defense_evasion
- attack.t1685
- attack.impact
- attack.t1565.001
- attack.t1485
- cve.2026.58048
- attack.tool.cpanel
logsource:
product: linux
service: mysql
detection:
selection:
query|contains:
- 'CREATE USER'
- 'GRANT ALL PRIVILEGES'
- 'GRANT ALL'
- 'DROP DATABASE'
- 'TRUNCATE TABLE'
- 'ALTER USER'
timeframe: 5m
condition: selection
falsepositives:
- Authorized database administration by root or WHM administrators
- Legitimate cPanel account provisioning scripts creating new databases
- Automated database migration and import workflows
level: criticalKnown false positives:
- Authorized database administration by root or WHM administrators
- Legitimate cPanel account provisioning scripts
- Automated database import and migration workflows
Tuning notes: Correlate with recently observed RENAME DATABASE operations on the same host. Isolate commands from non-root MySQL users. Consider alerting only when multiple distinct post-exploitation commands appear within a short timeframe (5m window). Exclude known WHM administrative IP ranges.
- cPanel Database Rename SQL Mode Privilege Escalation — KQL · unlock with TL Creds
- Database Root-Level Privilege Escalation Commands — KQL · unlock with TL Creds
- Database Exfiltration and Backdoor Detection — C2 — KQL · unlock with TL Creds
- cPanel Database Rename Exploitation — Sigma · unlock with TL Creds
- Database Root-Level SQL Injection via cPanel Daemon — Post-Exploitation · unlock with TL Creds
- Database Data Exfiltration via File Operations — C2 — Sigma · unlock with TL Creds
- cPanel Database Rename SQL Mode Loss — Exploitation Attempt · unlock with TL Creds
- Database Data Exfiltration via File Write Operations — C2 / Lateral Movement · unlock with TL Creds
Indicators of compromise
As of 2026-08-04, Threadlinqs Intelligence tracks 5 indicators of compromise for TL-2026-1862.
Technical analysis
Depending on the operating system and database engine configuration, this may extend to operating-system-level compromise. Fixed builds are available across all supported release tiers.
CVE-2026-58048 is a critical SQL injection vulnerability discovered by security researcher Vincent55 Yang (via HackerOne) in WebPros' cPanel, WHM, and WP Squared products. The flaw carries a CVSS 4.0 base score of 9.4 (CRITICAL) with the vector CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H, indicating network-based exploitation with low complexity, no attack requirements, low privileges required, no user interaction, and high impact on confidentiality, integrity, and availability with scope change to subsequent systems. The CNA record classifies this as CWE-89 (SQL Injection), while the cPanel advisory describes it as a privilege escalation bug — both characterize the same underlying flaw.
The root cause lies in the improper preservation of SQL mode during the database rename workflow in cPanel. When a user initiates a database rename, cPanel's root-owned daemon performs the following sequence: (1) builds a replacement database, (2) migrates the data over, (3) recreates grants and stored code, and (4) deletes the original database and its permissions. During this process, the SQL mode (a MySQL/MariaDB server setting that controls SQL syntax behavior and operational constraints) is not correctly re-applied to the replacement database. This creates a window where an attacker-influenced input in the rename path is interpreted by the MySQL/MariaDB server with root-level database privileges rather than the confined low-privileged user context, enabling arbitrary SQL execution.
cPanel is a Linux-based web-hosting control panel that brokers unprivileged user actions (such as database creation, renaming, and deletion) into privileged operations performed by root-owned daemons against the underlying MySQL/MariaDB server. The vulnerability exists in this root-context daemon path where the rename operation fails to preserve the SQL mode. The discrepancy between the cPanel advisory (privilege escalation) and the CNA classification (CWE-89 SQL Injection) reflects the same technical reality: the SQL mode loss during rename enables root-level SQL injection through a mechanism that manifests as privilege escalation.
The vulnerability affects all supported cPanel & WHM version tiers prior to the respective fixed builds: 11.110.0.137, 11.118.0.71, 11.126.0.78, 11.134.0.48, and 11.136.0.32, as well as version 11.137.9999.99. WP Squared (WebPros' managed-WordPress hosting platform) is also affected prior to build 11.138.1.6, as it shares the same vulnerable code path. The prerequisite for exploitation is a valid cPanel account with the MySQL/MariaDB feature enabled. It remains unclear whether Team User sub-accounts (delegated limited-permission logins) qualify as exploit-capable authenticated holders — this is an open question that should be verified with cPanel support.
The CISA SSVC assessment (via the vulnrichment program) reports no known exploitation observed in the wild as of August 1, 2026, and assesses the vulnerability as not automatable but with total technical impact. The EPSS score is 0.503% (40th percentile), indicating low predicted exploitation probability within 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the 'Critical' severity designation reflects the potential impact, not current exploitation volume — if exploited, the attacker gains full read/write/delete access to all databases on the server, with potential for OS-level compromise depending on database engine configuration (e.g., MySQL/MariaDB's LOAD DATA INFILE, SELECT INTO OUTFILE, or user-defined function capabilities that can execute OS commands).
Fixed builds have been released across all supported cPanel & WHM release tiers. The primary remediation is to upgrade to the cPanel 138 release series or the specific patched builds listed above. Enabling cPanel's automatic-update mechanism will pick up the patched tier on the standard release cadence. As a compensating control, administrators can temporarily revoke the MySQL/MariaDB feature from cPanel users (which does not disable existing databases — it only prevents creation and removal of databases) or restrict database rename permissions to trusted administrators. On shared hosting environments, patching should be prioritized for nodes with numerous or untrusted tenants to reduce the exposure window. Auditing recent database rename operations for suspicious activity is also recommended.
MITRE ATT&CK techniques by tactic:
Collection
T1005 Data from Local System; T1560 Archive Collected Data
Exfiltration
T1048 Exfiltration Over Alternative Protocol
Execution
T1059 Command and Scripting Interpreter
Discovery
T1082 System Information Discovery; T1087 Account Discovery
Impact
T1485 Data Destruction; T1565 Data Manipulation
Persistence
T1505 Server Software Component
Credential Access
defense-impairment
Remediation
Patches
- Upgrade cPanel & WHM to build 11.110.0.137 (110 tier), 11.118.0.71 (118 tier), 11.126.0.78 (126 tier), 11.134.0.48 (134 tier), or 11.136.0.32 (136 tier) depending on your release tier
- Upgrade to the cPanel 138 release series for the latest patched build
- Upgrade WP Squared to build 11.138.1.6 or later
Immediate actions
- Revoke the MySQL/MariaDB feature from cPanel users as a temporary compensating control (does not disable existing databases, only prevents creation/removal)
- Restrict database rename permissions to trusted administrators only
- Audit recent database rename operations for suspicious activity
Workarounds
- Edit cPanel feature lists to disable the 'MySQL' feature for all non-admin users (via WHM: Feature Manager)
- Temporarily disable database rename capability until patching is complete
- Isolate shared hosting tenants on separate database instances where feasible
Longer-term hardening
- Enable cPanel's automatic-update mechanism to ensure timely patch delivery
- Implement a vulnerability management process for shared hosting infrastructure
- Consider network segmentation isolating database servers from tenant-facing control planes
- Implement database activity monitoring (DAM) for shared hosting environments
Affected and fixed versions
- WebPros (cPanel) — cPanel & WHM
Vulnerable versions: All versions < 11.110.0.137 (110 tier); All versions < 11.118.0.71 (118 tier); All versions < 11.126.0.78 (126 tier); All versions < 11.134.0.48 (134 tier); All versions < 11.136.0.32 (136 tier); 11.137.9999.99
Fixed in: 11.110.0.137; 11.118.0.71; 11.126.0.78; 11.134.0.48; 11.136.0.32; 138 release series and later - WebPros (WP Squared) — WP Squared Managed WordPress
Vulnerable versions: All versions < 11.138.1.6
Fixed in: 11.138.1.6 and later
Timeline
- CVE-2026-58048 reserved by HackerOne (CNA) for the cPanel database privilege escalation vulnerability reported by Vincent55 Yang
- GitHub Advisory Database publishes GHSA-xgvx-cwxw-9vpj covering CVE-2026-58048 with CVSS 4.0 score 9.4 and EPSS score of 0.503%
- cPanel 138 release series and individual fixed builds (11.110.0.137, 11.118.0.71, 11.126.0.78, 11.134.0.48, 11.136.0.32) released addressing the database rename privilege escalation. WP Squared fixed build 11.138.1.6 also released
- CVE-2026-58048 published to the NVD and CVE list with a CVSS 4.0 base score of 9.4 (CRITICAL). cPanel released official advisory and fixed builds across all supported release tiers
- CISA ADP updates the vulnrichment record with SSVC assessment: no exploitation observed, not automatable, total technical impact
- Security Affairs publishes detailed article on CVE-2026-58048, bringing the vulnerability to broader public attention, noting potential for OS-level compromise under certain configurations
Sources cited
- NVD Detail — CVE-2026-58048 NVD (NIST) · Advisory · 2026-07-31
- GitHub Advisory — GHSA-xgvx-cwxw-9vpj GitHub · Advisory · 2026-07-31
- CISA Vulnrichment — CVE-2026-58048 SSVC Assessment GitHub · Advisory · 2026-08-01
- CVE.org Record — CVE-2026-58048 CVE Program · Advisory · 2026-07-31
- cPanel Official Advisory — CVE-2026-58048 Database Privilege Escalation support.cpanel.net · Vendor report · 2026-07-31
- cPanel 138 Change Log docs.cpanel.net · Vendor report · 2026-07-31
- Security Affairs — CVE-2026-58048: cPanel bug enables full database administrator access securityaffairs.com · News · 2026-08-04
Previous and next in vulnerability
- CVE-2026-17583 — High-Severity Tampering Flaw in Thermo Fisher Applied Biosystems Forensic DNA Analysis Software Previous report
- NightmareEclipse Coordinated Disclosure Breach Campaign: 9+ Windows Zero-Days (CVE-2026-33825, CVE-2026-41091, CVE-2026-45498, CVE-2026-45585, CVE-2026-45586) Dumped Outside Responsible Disclosure and Weaponized in Real-World Intrusions Next report
Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.