OPNsense core
OPNsense: Root RCE via Arbitrary File Write in GeoIP Alias Importer
Edge device · Firewall / VPNknown edge product: opnsense core OPNsense: Root RCE via Arbitrary (high confidence)
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 26.1.11
Fixed in 26.1.11
Mitigation
Upgrade core to 26.1.11 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 92 days before publication; not in CISA KEV. First PoC: babyshen/CVE-2026-57155 (created 16 Jul 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| babyshen/CVE-2026-57155 | 16 Jul 2026 −92 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /ui/firewall/alias
- Seen in
- 1 repo: babyshen/CVE-2026-57155
- Evidence
- babyshen/CVE-2026-57155/poc.py:142
POST /api/firewall/alias/reconfigure
- Content-Type
application/json- Seen in
- 1 repo: babyshen/CVE-2026-57155
- Evidence
- babyshen/CVE-2026-57155/poc.py:202
POST /api/firewall/alias/set
- Body markers
"alias"inapplication/json- Seen in
- 1 repo: babyshen/CVE-2026-57155
- Evidence
- babyshen/CVE-2026-57155/poc.py:192
POST /api/firewall/alias/update/geoip
- Content-Type
application/json- Seen in
- 1 repo: babyshen/CVE-2026-57155
- Evidence
- babyshen/CVE-2026-57155/poc.py:208
POST /index.php
- Body markers
m.group(1)=usernamefld=passwordfld=login=1inapplication/x-www-form-urlencoded- Seen in
- 1 repo: babyshen/CVE-2026-57155
- Evidence
- babyshen/CVE-2026-57155/poc.py:132
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/ui/firewall/alias(?:[?#].*)?$
(?i)^/api/firewall/alias/reconfigure(?:[?#].*)?$
(?i)^/api/firewall/alias/set(?:[?#].*)?$
(?i)^/api/firewall/alias/update/geoip(?:[?#].*)?$
(?i)^/index\.php(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-57155 opnsense core exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/ui/firewall/alias"; reference:url,poc.griffinguard.io/cve/CVE-2026-57155; classtype:web-application-attack; sid:9893347; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-57155 opnsense core exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/firewall/alias/reconfigure"; reference:url,poc.griffinguard.io/cve/CVE-2026-57155; classtype:web-application-attack; sid:9562937; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-57155 opnsense core exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/firewall/alias/set"; http.request_body; content:"|22|alias|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-57155; classtype:web-application-attack; sid:9443226; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-57155 opnsense core exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/firewall/alias/update/geoip"; reference:url,poc.griffinguard.io/cve/CVE-2026-57155; classtype:web-application-attack; sid:9808584; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-57155 opnsense core exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/index.php"; http.request_body; content:"m.group(1)="; http.request_body; content:"usernamefld="; http.request_body; content:"passwordfld="; http.request_body; content:"login=1"; reference:url,poc.griffinguard.io/cve/CVE-2026-57155; classtype:web-application-attack; sid:9899515; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: opnsense core exploit attempt (CVE-2026-57155)
id: gg-pocmon-cve-2026-57155-9893347
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-57155. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-57155
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/ui/firewall/alias'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.57155
title: opnsense core exploit attempt (CVE-2026-57155)
id: gg-pocmon-cve-2026-57155-9562937
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-57155. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-57155
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/firewall/alias/reconfigure'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.57155
title: opnsense core exploit attempt (CVE-2026-57155)
id: gg-pocmon-cve-2026-57155-9443226
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-57155. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-57155
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/firewall/alias/set'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.57155
title: opnsense core exploit attempt (CVE-2026-57155)
id: gg-pocmon-cve-2026-57155-9808584
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-57155. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-57155
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/firewall/alias/update/geoip'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.57155
title: opnsense core exploit attempt (CVE-2026-57155)
id: gg-pocmon-cve-2026-57155-9899515
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-57155. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-57155
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/index.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.57155