CVE-2026-119409

OPNsense before 26.7.8 Root Command Injection via Firmware Mirror Setting

Published Oct 30, 2026 CVSS 4.0 · 8.6 High EPSS 2.5% KEV · Not listed
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.

Analysis

AI-generated

Technical 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 EPSS score is 2%, suggesting a low but non-zero likelihood of exploitation. 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.

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 31, 2026 at 14:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Opnsense core
Vendors & Products Opnsense core
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

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'}

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 30, 2026, 3:55 PM
Reserved
Oct 30, 2026, 1:22 AM
Status
Deferred
Published
Oct 30, 2026, 12:16 PM
Modified
Oct 30, 2026, 7:23 PM