# CVE-2026-57155: OPNsense: Root RCE via Arbitrary File Write in GeoIP Alias Importer

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.86%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-15T15:13:12.343Z
- Modified: 2026-10-15T21:08:49.703Z
- Weaknesses: CWE-22, CWE-73, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- opnsense core: < 26.1.11

## 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>

## Sources

- CVE List: [CVE-2026-57155](https://www.cve.org/CVERecord?id=CVE-2026-57155), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-57155](https://nvd.nist.gov/vuln/detail/CVE-2026-57155), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-57155 · Whole record: https://cve.day/CVE-2026-57155.json · Rebuilt by cve.day 2026-11-25T22:59:44.899Z
