All vulnerabilities

Servers and applications

GHSA-vw8q-pqq7-2q7v

Manual Config::save() paths bypass user-config-readonly enforcement

Severity
High 7.6
Published
21 Jul 2026
Last changed
21 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
26.7.1
Weakness
Incorrect authorization (CWE-863)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read some data · Change data · Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
Sources
Project advisories (GitHub)

Description

OPNsense has a user-config-readonly deny privilege intended to block configuration writes. The normal mutable model controller save path enforces this deny privilege, but several API controllers persist configuration manually through Config::save() without first calling throwReadOnly().

An authenticated user explicitly marked read-only can therefore make persistent configuration changes when they also hold the affected page privilege.

Confirmed affected paths on OPNsense 26.1.11_5:

The intended read-only enforcement exists in the base API controller:

The normal mutable model save path calls this check:

The affected controllers bypass this path and call Config::save() directly:

The root cause is that read-only enforcement is attached to one controller helper, not to the global act of persisting configuration.

A user explicitly assigned user-config-readonly can still persist changes to firewall aliases, DNS filtering policy, Netflow telemetry settings, global IPsec state, CRL…

From opnsense/core's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
OPNsenseServers and applications · github:opnsense/core
  • Every version before 26.7.1

About OPNsense

open-source firewall

From Wikidata, CC0 1.0.
GitHub stars
4,802GitHub, 15 Nov 2026
Forks
1,029GitHub, 15 Nov 2026
License
2-clause BSD LicenseWikidata
Written in
PHP, CWikidata
First released
2 Jan 2015Wikidata
First published on GitHub
13 Dec 2014GitHub

Release lines

ReleaseLatestSecurity fixes
26.7 'Xenial Xenops'26.7.9Yes
26.1 'Witty Woodpecker'26.1.11Ended 15 Jul 2026
25.7 'Visionary Viper'25.7.11Ended 28 Jan 2026
25.1 'Ultimate Unicorn'25.1.12Ended 23 Jul 2025
24.7 'Thriving Tiger'24.7.12Ended 28 Jan 2025
24.1 'Savvy Shark'24.1.10Ended 25 Jul 2024

From endoflife.date.

References