External risk intelligence

OPNsense Firewall Path Traversal Leads to Root Compromise.

CVE advisorySeverity: CRITICAL (CVSS 9.9)

CVE-2026-57155

OPNsense is a firewall and routing platform commonly deployed as an internet-facing edge service. While this specific vulnerability requires authenticated access to configure GeoIP sources, the product role as a primary gateway and network edge device makes its management interface a common target that is frequently reachable from internal or external administrative networks.

Path Traversal

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory highlights a critical vulnerability in OPNsense firewall and routing platforms, allowing an authenticated user to execute commands as root. The issue stems from unvalidated input used in constructing filenames, which can lead to code execution and a complete system compromise. This could affect the integrity and availability of network perimeter security.

  • Unvalidated input allows root command execution.
  • Critical systems, like firewalls, are targeted.
  • Confirm relevance and exposure of OPNsense systems.

Attack Path

How an attacker could exploit the issue

An attacker with the ability to edit firewall aliases can trick OPNsense into writing arbitrary files to the system. By providing a specially crafted archive, the attacker can manipulate the GeoIP importer to create files in unintended locations. This, combined with a crafted newsyslog fragment and an oversized log file, allows the attacker to leverage a default cron job to execute commands with root privileges, leading to a full compromise of the firewall.

  • Requires authenticated user with alias edit privilege.
  • Unvalidated country code in archive filename.
  • Complete firewall compromise via root cron job.

Live Threat

Current exploitation, exposure, and threat context

When supported by the advisory, an attacker with Firewall Alias Edit privilege could potentially write attacker-controlled content to the firewall system. This content could then be executed by a privileged cron job, potentially leading to a complete compromise of the firewall.

  • Firewall system integrity.
  • Unvalidated input allows file overwrites.
  • Complete firewall compromise is possible.

Operational Fix

Recommended remediation, mitigation, and detection steps

The OPNsense firewall and routing platform is likely managed by infrastructure or platform teams. Given its role as a network edge device, security and network teams also have a vested interest. The immediate first step is to identify all OPNsense instances, confirm their business criticality and network exposure, and then pinpoint the accountable owner for each before planning remediation.

  • Firewall and infrastructure teams own.
  • Confirm OPNsense instance exposure.
  • Plan remediation based on risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is OPNsense and how is it used?

OPNsense is an open-source firewall and routing platform based on FreeBSD. Organizations use it to secure their network perimeter, manage traffic, and provide VPN connectivity. Because it serves as a gateway between internal networks and the internet, it is a critical component for controlling network flow and protecting downstream infrastructure.

What does CVE-2026-57155 mean for OPNsense security?

This vulnerability involves path traversal (CWE-22) and improper input validation (CWE-73). It allows an authenticated user to manipulate filenames during GeoIP data imports. By crafting specific files, an attacker can overwrite system files and eventually achieve arbitrary command execution (CWE-78) with root-level privileges.

How can an attacker trigger this vulnerability?

An attacker needs the 'Firewall Alias Edit' privilege to point the GeoIP importer to a malicious archive. The bug is triggered when the importer processes this archive, using a manipulated country code to write files outside the intended directory. Simply browsing the interface or using default settings without this specific privilege modification does not trigger the vulnerability.

Is my OPNsense instance at risk?

According to Halo Surface Signal, OPNsense is often deployed as an internet-facing edge service. While this issue requires prior access to administrative features, the product's role as a network gateway makes the management interface a significant target. If your management console is reachable from broader networks, the potential impact of a compromise increases.

How do I secure my environment against this?

The primary response is to update your OPNsense installation to version 26.1.11 or later, where this issue is resolved. Before applying updates, identify all active instances within your infrastructure, confirm their administrative access controls, and ensure that only trusted users are granted Firewall Alias edit permissions.

References