Skip to navigation

Threat reportVulnerabilityTL-2026-1862

CVE-2026-58048 — cPanel & WHM Database Privilege Escalation via Database Rename (SQL Mode Loss)

criticalACTIVE

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

IdentifiersTL-2026-1862, CVE-2026-58048
Also known asGHSA-xgvx-cwxw-9vpj
SeverityCRITICAL
CVSS9.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)
EPSSCVE-2026-58048: 0.5% (40.2th percentile)
Affected productsWebPros (cPanel) cPanel & WHM; WebPros (WP Squared) WP Squared Managed WordPress
Weaknesses (CWE)CWE-89
ToolsMySQL/MariaDB database server, WP Squared Managed WordPress (vulnerable builds), cPanel & WHM (vulnerable builds), cPanel Feature Manager (WHM)
MITRE ATT&CK techniquesT1005 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
MotivationUNKNOWN
Target sectorsweb-hosting, managed-wordpress, cloud-infrastructure, saas, shared-hosting, reseller-hosting
Target regionsGlobal
Detection rules9 (1 shown free)
Sources7 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 -_time

Microsoft 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 desc

Sigma

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: critical

Known 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.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • 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.

5 indicators of compromise · unlock with TL Creds. Compare plans

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

T1552 Unsecured Credentials

defense-impairment

T1685 Disable or Modify Tools

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

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats