AI Security AI安全 3h ago Updated 1h ago 更新于 1小时前 43

New cPanel Critical Flaw Could Let Hosting Customers Run SQL as Database Root cPanel 新发现关键漏洞:托管用户可能以数据库 root 身份执行 SQL

cPanel patched CVE-2026-58048, a critical privilege escalation flaw (CVSS 9.4) allowing authenticated hosting customers to execute SQL commands with full database root/administrative privileges The vulnerability stems from SQL mode not being preserved during cPanel's database-renaming process, causing SQL to execute in root context and potentially leading to OS-level compromise Two additional vulnerabilities were addressed in the same release: CVE-2026-58047 (HTTP request smuggling in cpsrvd, CV cPanel修复了CVE-2026-58048关键漏洞(CVSS 9.4),允许认证用户以数据库root权限执行任意SQL命令,可能导致操作系统级入侵 漏洞根因在于数据库重命名过程中SQL模式未被保留,导致SQL在管理员上下文中执行,绕过正常的数据库级权限限制 同一安全更新还修复了HTTP请求走私漏洞CVE-2026-58047(CVSS 5.6)及Exim邮件服务器的两个本地提权漏洞 CISA评估该漏洞技术影响为"完全",当前无公开利用记录,但建议立即更新或临时撤销MySQL功能作为缓解措施 受影响范围包括所有受支持的cPanel & WHM版本及WP Squared,补丁已发布至指定构建版

68
Hot 热度
62
Quality 质量
55
Impact 影响力

Analysis 深度分析

TL;DR

  • cPanel patched CVE-2026-58048, a critical privilege escalation flaw (CVSS 9.4) allowing authenticated hosting customers to execute SQL commands with full database root/administrative privileges
  • The vulnerability stems from SQL mode not being preserved during cPanel's database-renaming process, causing SQL to execute in root context and potentially leading to OS-level compromise
  • Two additional vulnerabilities were addressed in the same release: CVE-2026-58047 (HTTP request smuggling in cpsrvd, CVSS 5.6) and two Exim flaws (unsafe string expansion and directory traversal)
  • CISA rated the technical impact as "total" but initially recorded "exploitation: none" and classified the flaw as non-automatable, though this snapshot may not reflect current reality
  • Affected builds span multiple supported cPanel & WHM branches (11.110 through 11.136) plus WP Squared 138.1.6, with temporary workarounds available for servers unable to update immediately

Why It Matters

This vulnerability represents a fundamental breakdown in the multi-tenant hosting security model, where the privilege boundary between individual cPanel accounts and the server's administrative database identity was crossed, potentially allowing any authenticated user to escalate to full server compromise. For AI practitioners and infrastructure teams relying on shared hosting environments, this underscores the critical importance of keeping web hosting control panels patched, as a single vulnerable component can undermine the entire isolation model that multi-tenant architectures depend on.

Technical Details

  • CVE-2026-58048 (CVSS 9.4): The core flaw exists in cPanel's database-renaming process, which creates a replacement database, moves original data, recreates grants and stored code, then removes the old database — but fails to preserve SQL mode, causing subsequent operations to execute in the database administrative/root context. This bypasses cPanel's normal database-level privilege restrictions that do not require SUPER access.
  • CVE-2026-58047 (CVSS 5.6): An HTTP request-smuggling vulnerability in cpsrvd (the daemon serving cPanel and WHM interfaces) that allows unauthenticated remote attackers to manipulate responses delivered to other users on the same server under limited conditions, potentially leaking credentials.
  • Exim vulnerabilities (GCVE-25-2026-07-45-3 and GCVE-25-2026-07-45-1): The first involves unsafe string expansion in the .forward file redirect router under certain pipe-transport configurations, enabling privilege escalation from Team User sub-accounts; the second is a High-severity local directory traversal through queue-name command-line arguments in Exim 4.99.5.
  • Patched builds: 11.110.0.137, 11.118.0.71, 11.126.0.78, 11.134.0.48, 11.136.0.32, and WP Squared 138.1.6. Notably, cPanel's advisories are inconsistent — the 11.118 branch appears in the database advisory but is omitted from the request-smuggling and Exim advisory lists.
  • Workarounds: For CVE-2026-58048, temporarily revoke the MySQL feature from cPanel users (existing databases remain functional). For CVE-2026-58047, set cpsrvd_keepalives_disabled=1 in /var/cpanel/cpanel.config and restart cpsrvd, though this increases latency and CPU usage.

Industry Insight

  • The discrepancy between cPanel's advisory language (calling it a "privilege escalation") and the CNA classification (CWE-89 SQL injection) highlights the importance of cross-referencing multiple vulnerability records — practitioners should check both the vendor advisory and the CVE/CNA records for complete technical details, as neither alone identifies the exact payload, affected SQL mode, or injected input.
  • The inconsistency in patched build listings across advisories published in the same release is a red flag for operational security; administrators should verify their installed point release against every relevant advisory rather than relying on a single source, and consider implementing automated build-verification checks in their patch management workflows.
  • CISA's "exploitation: none" assessment on August 4 should not be treated as a current status — the article itself notes this is merely a snapshot with no guarantee about the days since; organizations should treat this as an actively exploitable critical flaw and prioritize patching immediately, especially on servers with externally-sold hosting accounts where the attack surface is significantly broader.

TL;DR

  • cPanel修复了CVE-2026-58048关键漏洞(CVSS 9.4),允许认证用户以数据库root权限执行任意SQL命令,可能导致操作系统级入侵
  • 漏洞根因在于数据库重命名过程中SQL模式未被保留,导致SQL在管理员上下文中执行,绕过正常的数据库级权限限制
  • 同一安全更新还修复了HTTP请求走私漏洞CVE-2026-58047(CVSS 5.6)及Exim邮件服务器的两个本地提权漏洞
  • CISA评估该漏洞技术影响为"完全",当前无公开利用记录,但建议立即更新或临时撤销MySQL功能作为缓解措施
  • 受影响范围包括所有受支持的cPanel & WHM版本及WP Squared,补丁已发布至指定构建版本

为什么值得看

本文揭示了托管平台中权限边界管理的严重缺陷,对依赖cPanel的Web托管服务商和开发者具有直接安全警示意义。漏洞利用路径清晰且影响范围广泛,为理解托管环境中的 privilege escalation 风险提供了典型案例。

技术解析

  • CVE-2026-58048数据库提权漏洞:位于cPanel数据库重命名流程,系统在创建替换数据库、迁移数据、重建授权和存储代码时未保留SQL模式,导致后续SQL在数据库管理员上下文中执行。需要有效cPanel账户和MySQL/MariaDB功能访问权限,但一旦利用可获得完全管理权限,在特定OS和数据库引擎配置下可能延伸至操作系统级入侵。
  • CVE-2026-58047 HTTP请求走私漏洞:存在于提供cPanel和WHM界面的cpsrvd守护进程中,在有限条件下未认证远程攻击者可操纵发送给同服务器其他用户的响应,可能导致凭据泄露。临时缓解方案为在/var/cpanel/cpanel.config中设置cpsrvd_keepalives_disabled=1并重启cpsrvd,但会增加延迟和CPU使用。
  • Exim邮件服务器漏洞:GCVE-25-2026-07-45-3涉及.local用户的.forward文件在特定pipe传输配置下触发不安全字符串扩展,可能导致Team User子账户提权;GCVE-25-2026-07-45-1为通过queue-name命令行参数的高危本地目录遍历漏洞。Exim 4.99.5已修复这两个问题。
  • 补丁版本与缓解措施:数据库漏洞补丁发布至11.110.0.137、11.118.0.71、11.126.0.78、11.134.0.48、11.136.0.32及WP Squared 138.1.6。无法立即更新的服务器可临时撤销MySQL功能,保留现有数据库运行但阻止用户添加或删除数据库。
  • 漏洞分类差异:厂商公告将其定性为权限提升,而HackerOne CNA记录将其分类为CWE-89 SQL注入,两者从不同角度描述同一缺陷,但均未披露具体注入输入、受影响的SQL模式或确切载荷。

行业启示

  • 托管平台供应商应重新审视多租户环境中的权限隔离机制,特别是涉及数据库管理、文件操作等敏感功能的代码路径,确保配置变更不会意外提升执行上下文权限。
  • 安全更新发布后供应商文档存在不一致(如11.118分支补丁列表矛盾),建议运维人员交叉验证多个安全公告,建立自动化补丁验证流程以避免遗漏关键更新。
  • CISA评估显示当前无利用记录但技术影响为"完全",托管服务商应遵循"零信任"原则,即使漏洞尚未被广泛利用也应立即采取缓解措施,同时加强对Team User子账户等受限角色的安全审计。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全