Description
OPNsense before 26.7.8 contains a command injection vulnerability that allows authenticated users with the System: Firmware privilege to execute commands as root by storing a malicious firmware mirror URL. Attackers can submit shell metacharacters through POST /api/core/firmware/set that opnsense-update evaluates with eval, and can also disable package signature verification through sed injection.
Published: 2026-10-30
Score: 8.6 High
EPSS: n/a
KEV: No
Impact: Command Injection
Action: Immediate Patch
AI Analysis

Impact

The vulnerability in OPNsense before 26.7.8 is a command injection flaw that arises when an authenticated user with System: Firmware privileges sets a firmware mirror URL through the POST /api/core/firmware/set endpoint. The backend opnsense-update script evaluates the submitted URL with eval, allowing an attacker to embed shell metacharacters and arbitrary commands. Because the evaluation runs as root and can also manipulate signature verification with sed replacement, an attacker can execute any shell commands with full system privileges, potentially pivoting to complete control of the firewall device.

Affected Systems

Affected vendor and product are OPNsense core. All releases prior to 26.7.8 are vulnerable, including 26.6.x, 25.x, and earlier. Specific affected version information is not enumerated beyond the general pre-26.7.8 threshold. The vulnerability is documented for deployments where API access is permitted and firmware updates are enabled.

Risk and Exploitability

The flaw carries a CVSS score of 8.6, classifying it as a high severity vulnerability. The dedicated EPSS score is not published, and the vulnerability is not in CISA's KEV catalog. Exploitation requires an authenticated session with System: Firmware privilege, meaning an attacker must have at least local administrative access or compromise legitimate credentials. Based on the description, the likely attack vector is a remote API request from an authenticated user, making the risk high for compromised or publicly exposed OPNsense instances.

Generated by OpenCVE AI on October 30, 2026 at 12:23 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest OPNsense update to version 26.7.8 or later, which removes the eval usage and protects the firmware mirror configuration.
  • If an immediate upgrade is not possible, temporarily disable the firmware update feature or block the /api/core/firmware/set endpoint to prevent malicious URL submissions.
  • Restrict System: Firmware privileges to only essential administrators and ensure that credentials are strong, monitored, and periodically rotated.

Generated by OpenCVE AI on October 30, 2026 at 12:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 11:45:00 +0000

Type Values Removed Values Added
Description OPNsense before 26.7.8 contains a command injection vulnerability that allows authenticated users with the System: Firmware privilege to execute commands as root by storing a malicious firmware mirror URL. Attackers can submit shell metacharacters through POST /api/core/firmware/set that opnsense-update evaluates with eval, and can also disable package signature verification through sed injection.
Title OPNsense before 26.7.8 Root Command Injection via Firmware Mirror Setting
First Time appeared Opnsense
Opnsense opnsense
Weaknesses CWE-78
CPEs cpe:2.3:a:opnsense:opnsense:*:*:*:*:*:*:*:*
Vendors & Products Opnsense
Opnsense opnsense
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Opnsense Opnsense
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-30T11:30:46.595Z

Reserved: 2026-10-30T01:22:43.836Z

Link: CVE-2026-119409

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T12:16:37.510

Modified: 2026-10-30T12:16:37.510

Link: CVE-2026-119409

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T12:30:14Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')