Description
OPNsense before 26.7.8 contains a command injection vulnerability that allows authenticated users with the System: Firmware privilege to execute commands as root by storing a malicious firmware mirror URL. Attackers can submit shell metacharacters through POST /api/core/firmware/set that opnsense-update evaluates with eval, and can also disable package signature verification through sed injection.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| opnsense | core | < 26.7.8 | 26.7.8 |
Advisories 1
- WID-SEC-2026-4201 OPNsense: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit Administratorrechten BSI CERT-Bund (WID) · Nov 1, 2026
References
- GitHub Security Advisory (GHSA-p683-f7x2-pm4p) vendor-advisory
- https://github.com/opnsense/core/commit/1cc41fc39da99d59818c789b3b561f1515126f47 patch
- https://github.com/opnsense/core/commit/8e214533d33c3af7481e86f616ee615adc6a0a73 patch
- https://github.com/opnsense/update/commit/9bfd3b7020499b6032ee64804193a9f3ce8178fa patch
- https://github.com/opnsense/update/blob/a2b8a10ba85f13b2cd002abb4c8692dde99f0261/src/update/opnsense-update.sh.in#L165 technical-description
- https://abraxaslabs.tech/research/opnsense-firmware-mirror-sed third-party-advisory
- https://github.com/opnsense/core product
- VulnCheck Advisory: OPNsense before 26.7.8 Root Command Injection via Firmware Mirror Setting third-party-advisory