Description
OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.11, the Firewall Alias GeoIP importer's process_zip() and process_gzip() paths in src/opnsense/scripts/filter/lib/alias/geoip.py use an unvalidated CSV country_code value to construct output filenames below /usr/local/share/GeoIP/alias. A user with Firewall Alias Edit privilege can configure an attacker-controlled GeoIP source URL and supply an archive whose country code traverses into another existing directory, causing attacker-controlled content to be written as root with an -IPv4 or -IPv6 suffix. A crafted newsyslog fragment and oversized log file can use the default hourly root cron job to execute commands as root, resulting in complete firewall compromise. This issue is fixed in version 26.1.11.
Published: 2026-10-15
Score: 9.9 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability arises from an unvalidated 'country_code' field in the GeoIP Alias Importer. An attacker with Firewall Alias Edit privilege can supply a crafted GeoIP source that includes path traversal sequences. This allows the importer to write arbitrary files below /usr/local/share/GeoIP/alias as root, resulting in attacker-controlled content with an -IPv4 or -IPv6 suffix. Coupled with a crafted newsyslog fragment and oversized log file, the default hourly root cron job can execute arbitrary commands as root, giving the attacker full control of the firewall system.

Affected Systems

OPNsense version 26.1.10 and earlier of the core package are affected. The issue was fixed in version 26.1.11.

Risk and Exploitability

The CVSS score of 9.9 classifies this flaw as critical, while the EPSS score of less than 1% indicates a low exploitation probability at present. The vulnerability is not listed in CISA KEV. Although the attacker requires Firewall Alias Edit privilege, the high severity and the possibility of executing commands as root make it a severe risk once the privilege is obtained.

Generated by OpenCVE AI on October 16, 2026 at 20:32 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to OPNsense 26.1.11 or a later version that contains the fix.
  • If upgrading is not immediately possible, limit GeoIP alias imports to trusted URLs or disable the GeoIP import functionality altogether.
  • Restrict Firewall Alias Edit permissions to highly trusted users to reduce the attack surface.

Generated by OpenCVE AI on October 16, 2026 at 20:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 15 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 15 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.11, the Firewall Alias GeoIP importer's process_zip() and process_gzip() paths in src/opnsense/scripts/filter/lib/alias/geoip.py use an unvalidated CSV country_code value to construct output filenames below /usr/local/share/GeoIP/alias. A user with Firewall Alias Edit privilege can configure an attacker-controlled GeoIP source URL and supply an archive whose country code traverses into another existing directory, causing attacker-controlled content to be written as root with an -IPv4 or -IPv6 suffix. A crafted newsyslog fragment and oversized log file can use the default hourly root cron job to execute commands as root, resulting in complete firewall compromise. This issue is fixed in version 26.1.11.
Title OPNsense: Root RCE via Arbitrary File Write in GeoIP Alias Importer
Weaknesses CWE-22
CWE-73
CWE-78
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-15T15:45:48.529Z

Reserved: 2026-06-24T01:45:48.698Z

Link: CVE-2026-57155

cve-icon Vulnrichment

Updated: 2026-10-15T15:45:43.520Z

cve-icon NVD

Status : Deferred

Published: 2026-10-15T16:18:17.300

Modified: 2026-10-15T21:08:49.703

Link: CVE-2026-57155

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-16T20:45:16Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-73

    External Control of File Name or Path

  • CWE-78

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