---
id: CVE-2025-30007
title: >-
  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 type…
summary: >-
  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 type…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
vendor: hestiacp
product: control_panel
affected:
  - control_panel < 1.9.5
patched:
  - control_panel 1.9.5
published: '2026-07-10'
updated: '2026-09-29'
sourceUpdated: '2026-09-29T19:10:00.160'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-30007'
references:
  - url: >-
      https://github.com/hestiacp/hestiacp/commit/a74babb739aa92e52b12d6ef52b6b9428ffbbb67
    label: disclosure@vulncheck.com
  - url: 'https://github.com/hestiacp/hestiacp/pull/5197'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/hestiacp/hestiacp/releases/tag/1.9.5'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/hestiacp-authenticated-os-command-injection-via-dns-record-management
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.03242
epssPercentile: 0.87831
ingestedAt: '2026-09-29T19:44:04.106Z'
---

## Overview

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 is_dns_record_format_valid() combined with unsafe eval-based parsing in update_domain_zone() 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

- `control_panel < 1.9.5`

## Remediation

Upgrade past the affected range:

- `control_panel 1.9.5`
