CVE-2026-57155 OPNsense: Root RCE via Arbitrary File Write in GeoIP Alias Importer
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- Network Appliances
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.
Upgrade path
1 package: 0 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| OPNsense core | = < 26.1.11 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| OPNsense core | = < 26.1.11 | No fix listed |
References
- https://github.com/opnsense/core/security/advisories/GHSA-wjqq-rfmm-v5h3 exploit
- https://github.com/opnsense/core/commit/c46aced9c47d956167e294911113bc334fea5f48
- https://github.com/opnsense/core/commit/e7fbfaa7f5e070da667e3f243da11fd3d4b731fa
- https://hackerask.com/posts/opnsense
- ENISA EUVD EUVD-2026-102114 third-party-advisory