Skip to main content

OPNsense os-acme-client EUVDEUVD-2026-117385

| CVE-2026-123025 CRITICAL
OS Command Injection (CWE-78)
2026-11-05 mitre GHSA-g9hg-38vq-jvh9
9.4
CVSS 4.0 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to OPNsense WebGUI/API with cert privileges
  2. Delivery
    Inject shell metacharacters into gcloud_account/gcloud_project field
  3. Exploit
    Trigger certificate issuance or renewal
  4. Execution
    Unescaped string interpolated into gcloud command via proc_open()
  5. Impact
    Arbitrary code execution as root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the OPNsense os-acme-client plugin (through 4.17) be configured to use the Google Cloud DNS validation method (DNS-01 via gcloud), and that the attacker be a remote authenticated user holding WebGUI/API privileges to issue or renew certificates (CVSS PR:L). The injectable surface is specifically the gcloud_account and gcloud_project string fields of the dns_gcloud_key model, which DnsGcloud::prepare() interpolates unescaped into a shell command; execution occurs when a certificate issuance or renewal runs. Limiting factors: authentication with certificate privileges is mandatory, and the Google Cloud DNS validation path must be enabled and exercised - environments using other DNS providers or validation methods are not reached by this specific code path. No user interaction beyond the attacker's own configuration/renewal action is required.

Impact

This is a genuine high-priority issue, not a CVSS-inflated one. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with full high impact to both the vulnerable system (VC:H/VI:H/VA:H) and subsequent systems (SC:H/SI:H/SA:H) is consistent with the description: a remote, low-privileged but authenticated WebGUI/API user gains arbitrary code execution as root on a firewall appliance. The vuln.today Decision label is act_now, reinforcing urgency. However, the signals are mixed on breadth of exploitation: there is no CISA KEV listing (no active exploitation confirmed), no EPSS probability was supplied, and no public exploit or PoC reference is present - the only reference is the vendor fix PR itself. The one meaningful limiting factor is PR:L: the attacker must already hold authenticated accounts/certificate privileges in the OPNsense ACME client, and the Google Cloud DNS (DNS-01) validation method must be in use for the injectable gcloud_account/gcloud_project fields to reach the shell. So the realistic risk is high impact (root on a security appliance) but gated behind an authenticated, specific-configuration prerequisite rather than default remote-unauthenticated exposure. Absence of EPSS/KEV data means the likelihood dimension cannot be fully quantified from the provided inputs.

Exploit ScenarioDerived

An authenticated OPNsense user with certificate issue/renew privileges who uses the Google Cloud DNS (DNS-01) validation method sets a malicious value containing shell metacharacters in the gcloud_account or gcloud_project field of the ACME account configuration. When a certificate is subsequently issued or renewed, DnsGcloud::prepare() decodes the key and interpolates these strings unescaped into a gcloud command executed via proc_open()/LeUtils::run_shell_command(), running attacker-controlled commands as root. Given AV:N/AC:L, triggering is straightforward once the attacker has the required account access; no public PoC or exploit code was identified in the provided data.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 05, 2026

Authenticated command injection in the OPNsense os-acme-client plugin (through 4.17) lets a user who can issue or renew certificates through the WebGUI/API run arbitrary commands as root on the firewall. The DnsGcloud::prepare() method takes the gcloud_account and gcloud_project values from the dns_gcloud_key model and interpolates them unescaped into gcloud shell commands executed via proc_open(), so crafted field contents execute when a Google Cloud DNS (DNS-01) validation run starts. Reaching the flaw requires the Google Cloud DNS validation method to be configured and the attacker to hold certificate-management privileges; the recent plugin release 4.18 replaces the raw interpolation with Shell::exec_safe(), and no public exploit code was identified at time of analysis. The vendor fix is available and the prioritizing decision is act_now.

RemediationAI

Upgrade the os-acme-client plugin to version 4.18, which replaces the unescaped interpolation in DnsGcloud::prepare() with Shell::exec_safe() calls and makes the formerly required field optional (see https://github.com/opnsense/plugins/pull/5873); the advisory text in the same PR records the fix for the Google Cloud DNS command injection. Note that 4.18 also carries a breaking change for the Selfhost DNS API, where credentials must be re-entered after the switch to API-key authentication, so schedule the update with that in mind. Where an immediate upgrade is not possible, remove or stop using the Google Cloud DNS validation method on any certificate entry and switch that certificate to a different DNS provider or to another validation method, which eliminates the injectable path at the cost of changing how the certificate is validated. Additionally restrict WebGUI and API access with certificate issuance/renewal privileges to trusted administrators, since the flaw requires authenticated access with those rights.

Affected VersionsENISA

os-acme-client 0 ≤4.17.0

Affected Packages

euvd os_acme_client no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

os-acme-client is the OPNsense plugin that wraps acme.sh to automate ACME certificate issuance and renewal, including DNS-01 validation through many DNS providers. Its validation classes extend a common LeValidation base; DnsGcloud implements the Google Cloud DNS path by invoking /usr/local/bin/gcloud with subcommands that create and activate a named configuration, activate a service account key file, and set the account and project. In versions through 4.17 those command strings were assembled by direct PHP string interpolation and handed to LeUtils::run_shell_command(), which ultimately uses proc_open() to spawn a shell, so any shell metacharacters in the model fields were interpreted by the shell. The vulnerability is CWE-78 (OS Command Injection), and because the plugin runs as root in the OPNsense WebGUI context, injected commands inherit root privileges. The fix in plugin 4.18 routes every gcloud invocation through OPNsense\Core\Shell::exec_safe() with %s placeholders, letting the framework shell-escape each argument instead of concatenating raw strings. The same release also makes the affected model field optional (model version 4.5.0) and carries unrelated DNS provider additions and a breaking Selfhost API-key change. The trigger path is confirmed by the upstream diff; any residual uncertainty concerns only which deployments have the Google Cloud DNS validation method enabled.

Know when Opnsense gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 9.4 CRITICAL
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
vuln.today AI 9.9 CRITICAL

Remote, authenticated low-priv WebGUI/API user (PR:L) with no added complexity (AC:L); code runs as root beyond the web app's authorization scope (S:C) with full C/I/A loss.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

DescriptionCVE.org

An OS Command Injection vulnerability was discovered in the Google Cloud DNS validation module of the OPNsense os-acme-client plugin through 4.17. The DnsGcloud::prepare() method decodes the dns_gcloud_key model field and directly interpolates the string fields gcloud_account and gcloud_project into a shell command passed to proc_open() via LeUtils::run_shell_command() without any validation or escaping. A remote authenticated user with privileges to issue or renew certificates through the WebGUI/API can achieve arbitrary code execution as root.

Executive ViewAI

Why It Matters

A critical vulnerability in the OPNsense os-acme-client plugin (through 4.17) enables users with certificate management privileges to execute arbitrary commands as root on the firewall. Although exploitation requires authenticated access with specific configuration, the potential for full system compromise makes this a high-priority issue for security leadership.

Business Impact: High
Compensating Controls

Apply vendor patch (upgrade to os-acme-client 4.18 or later). If unable to patch immediately, disable the Google Cloud DNS validation method and restrict certificate management privileges to trusted users only.

Threat Intelligence Overview

EPSS Score
0.6%
Top 50% exploitable
Prevalence
Medium
OPNsense firewall is common but not ubiquitous; ACME plugin is a specific component
Social Media
4
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.6%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2023-39004 CRITICAL POC
9.8 Aug 09

Insecure permissions in the configuration directory (/conf/) of OPNsense Community Edition before 23.7 and Business Edit

CVE-2023-27152 CRITICAL POC
9.8 Oct 23

DECISO OPNsense 23.1 does not impose rate limits for authentication, allowing attackers to perform a brute-force attack

CVE-2023-39008 CRITICAL POC
9.8 Aug 09

A command injection vulnerability in the component /api/cron/settings/setJob/ of OPNsense Community Edition before 23.7

CVE-2023-39001 CRITICAL POC
9.8 Aug 09

A command injection vulnerability in the component diag_backup.php of OPNsense Community Edition before 23.7 and Busines

CVE-2023-39007 CRITICAL POC
9.6 Aug 09

/ui/cron/item/open in the Cron component of OPNsense Community Edition before 23.7 and Business Edition before 23.4.2 al

CVE-2023-39003 HIGH POC
7.5 Aug 09

OPNsense Community Edition before 23.7 and Business Edition before 23.4.2 was discovered to contain insecure permissions

CVE-2023-39005 HIGH POC
7.5 Aug 09

Insecure permissions exist for configd.socket in OPNsense Community Edition before 23.7 and Business Edition before 23.4

CVE-2023-38997 HIGH POC
7.2 Aug 09

A directory traversal vulnerability in the Captive Portal templates of OPNsense Community Edition before 23.7 and Busine

CVE-2023-38999 MEDIUM POC
6.5 Aug 09

A Cross-Site Request Forgery (CSRF) in the System Halt API (/system/halt) of OPNsense Community Edition before 23.7 and

CVE-2019-25373 MEDIUM POC
6.4 Feb 15

OPNsense 19.1 contains a stored cross-site scripting vulnerability that allows authenticated attackers to inject malicio

CVE-2019-25369 MEDIUM POC
6.4 Feb 15

OPNsense 19.1 contains a stored cross-site scripting vulnerability in the system_advanced_sysctl.php endpoint that allow

CVE-2019-25372 MEDIUM POC
6.1 Feb 15

OPNsense 19.1 contains a reflected cross-site scripting vulnerability that allows unauthenticated attackers to inject ma

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy