Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-57155: Authenticated Path Traversal and Root Code Execution in OPNsense GeoIP Importer

Published Oct 15, 2026 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.9Critical · v3.1
EPSS0.86%59th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2026-57155CWE-22 · Improper Limitation of a Pathname…

CVE-2026-57155 is a path traversal vulnerability in the Firewall Alias GeoIP importer in OPNsense versions before 26.1.11. The process_zip() and process_gzip() processing paths use an unvalidated CSV country_code value to construct output filenames. An authenticated user with Firewall Alias Edit privileges can configure an attacker-controlled GeoIP source and supply an archive containing traversal sequences, causing attacker-controlled content to be written as root outside the intended GeoIP alias directory. Writes require an existing destination directory and produce filenames with an -IPv4 or -IPv6 suffix. A crafted newsyslog configuration fragment and oversized log file can turn this write capability into root command execution through the default hourly root cron job.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits privilege escalation from an account with Firewall Alias Edit privileges to root, resulting in complete firewall compromise. An attacker can compromise the confidentiality and integrity of appliance configuration and accessible data, alter firewall and routing behavior, and disrupt network services.

Mitigation

If you can’t patch tonight, do this now.

Until the update is applied, restrict Firewall Alias Edit privileges to fully trusted administrators and prevent untrusted users from changing GeoIP source settings. Restrict access to management interfaces and the Web API to trusted administrative networks. Avoid importing GeoIP archives from untrusted sources. These measures reduce exposure but do not correct the vulnerable importer.

Remediation

Patch, then assume compromise.

Upgrade OPNsense to version 26.1.11 or a later fixed release.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
CVE-2026-57155Repository contains a single Python proof-of-concept exploit (poc.py) and a README linking to the OPNsense advisory. The script is a standalone authenticated exploit against OPNsense's GeoIP alias update mechanism. It logs into the OPNsense web UI, extracts CSRF tokens, uses API calls to set a malicious GeoIP URL, reconfigures aliases, and triggers a GeoIP update so the target downloads an attacker-controlled archive. The archive is crafted in either ZIP or GZIP format and abuses path traversal in GeoIP data handling to write files outside the intended directory. Specifically, it plants a newsyslog configuration entry under /etc/newsyslog.conf.d and a >1KB bait log file under /var/log. The malicious newsyslog entry uses the FreeBSD newsyslog R-command feature to fetch a second-stage script from the attacker HTTP server and execute it. That second stage launches a Python-based reverse shell back to the attacker, yielding an interactive root shell. The exploit also starts its own local HTTP server to serve the malicious archive and stage-2 script, plus a TCP listener for the reverse shell. Overall structure: argument parsing and configuration; payload/archive builders (build_zip, build_gzip); embedded attacker web server; login helper for authenticated session and CSRF extraction; interactive reverse shell handler; and main orchestration logic for serving payloads, exploiting the target, and waiting for root shell callback.babyshen · Disclosed Jul 16, 2026 · python · web · networkOperational
FAQ

Frequently asked questions

Is CVE-2026-57155 exploited in the wild?
As of Oct 17, 2026, Mallory has no reports of CVE-2026-57155 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-57155?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-57155, the earliest disclosed Jul 16, 2026.
Is there a patch for CVE-2026-57155?
Upgrade OPNsense to version 26.1.11 or a later fixed release.
How severe is CVE-2026-57155?
CVE-2026-57155 has a CVSS v3.1 score of 9.9 (Critical) and an EPSS score of 0.86% (59th percentile) as of Oct 17, 2026.
Activity feed

Recent activity

13 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
cvefeed high severityNews · Oct 15, 2026CVE-2026-57155 - OPNsense: Root RCE via Arbitrary File Write in GeoIP Alias ImporterAn authenticated path traversal vulnerability in the OPNsense Firewall Alias GeoIP importer allows a user with Firewall Alias Edit privilege to configure an attacker-controlled GeoIP source and write attacker-controlled content into existing directories as root, with an -IPv4 or -IPv6 filename suffix. A crafted newsyslog configuration fragment and oversized log file can turn this write into root command execution through the default hourly cron job, resulting in complete firewall compromise. The SSVC assessment records proof-of-concept exploitation and total technical impact. Version 26.1.11 fixes the issue.Read more ↗opennet ruNews · Dec 25, 2025������ ������������ ��� �������� ���������� ������� OPNsense 26.7Критическая уязвимость в OPNsense, связанная с обработкой GeoIP через Web API, позволяющая аутентифицированному пользователю записать файл в произвольный путь и добиться выполнения команд с привилегиями root.Read more ↗opennetNews · Dec 25, 2025������ ������������ ��� �������� ���������� ������� OPNsense 26.7Критическая уязвимость в OPNsense, связанная с обработкой GeoIP через Web API, позволяющая аутентифицированному пользователю записывать файлы в произвольные пути и добиться выполнения кода с привилегиями root.Read more ↗
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity10Community discussion across Reddit, Mastodon, and other social sources.