CVE-2025-30007: HestiaCP < 1.9.5 Authenticated OS Command Injection via DNS Record Management
HestiaCP before 1.9.5 contains an authenticated OS command injection vulnerability that allows low-privilege authenticated users to execute arbitrary commands as root by injecting a single-quote character into unvalidated DNS record types. Attackers can exploit insufficient input validation in isdnsrecordformatvalid() combined with unsafe eval-based parsing in updatedomainzone() to prematurely close a variable assignment string and achieve full root code execution on the underlying host in a single DNS record creation step.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
HestiaCPto a version that resolves this vulnerability.Fixed in 1.9.5 - Compensating control
Restrict access to HestiaCP DNS record management functionality to trusted/authorized users only, since the vulnerability requires authenticated access.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-30007?
CVE-2025-30007 has a high severity score of 8.8.
How do I fix CVE-2025-30007?
To resolve CVE-2025-30007, update HestiaCP to version 1.9.5 or later.
What type of vulnerability is CVE-2025-30007?
CVE-2025-30007 is an authenticated OS command injection vulnerability.
What can attackers do with CVE-2025-30007?
Attackers can exploit CVE-2025-30007 to execute arbitrary commands as root by injecting unvalidated input.
Who is affected by CVE-2025-30007?
Low-privilege authenticated users of HestiaCP versions prior to 1.9.5 are affected by CVE-2025-30007.