CVE-2026-113779: CWE-502: Deserialization of Untrusted Data in pfrest pfSense-pkg-RESTAPI
Description
The pfSense REST API package is an unofficial, open-source REST and GraphQL API for pfSense CE and pfSense Plus firewalls. A privilege escalation vulnerability in pfSense-pkg-RESTAPI prior to version 2.9.0 allows authenticated accounts holding the dedicated settings sync permission to modify REST API configuration secrets. This enables a non-administrative user to elevate their privileges to a full administrator. pfSense-pkg-RESTAPI 2.9.0 patches the issue. Access to the HA settings sync endpoint now strictly requires full administrative privileges (`page-all`). The sub-administrative sync privilege has been removed in versions v2.9.0 and later. In addition to correcting the access control boundary, version 2.9.0 includes the following hardening measures: opt-in default and format and validation modernization. As a workaround, one may mitigate exposure by taking either or all of the following steps. Revoke Scoped Permissions: Remove the `api-v2-system-restapi-settings-sync-post` privilege from all non-administrative users. Apply ACLs: Configure REST API Access Control Lists (ACLs) and/or firewall rules to restrict access to API endpoints exclusively to trusted administrator and HA peer IP addresses.
CVSS v3.1
Score 8.8high
Affected software
pfrest
pfSense-pkg-RESTAPI
pkg:github/pfrest/pfSense-pkg-RESTAPIRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The pfSense-pkg-RESTAPI package prior to 2.9.0 contains a CWE-502 deserialization of untrusted data vulnerability that enables privilege escalation. Specifically, authenticated users with the dedicated settings sync permission (a sub-administrative privilege) can modify REST API configuration secrets, effectively elevating their privileges to full administrator. The vulnerability is fixed in version 2.9.0 by removing the sub-administrative sync privilege and enforcing that access to the HA settings sync endpoint requires full administrative rights (`page-all`). The update also includes opt-in defaults and improved validation to harden the API. Mitigation can be achieved by revoking the vulnerable permission from non-admin users and restricting API endpoint access to trusted IPs.
Potential Impact
This vulnerability allows an authenticated user with limited privileges (settings sync permission) to escalate to full administrator privileges. This can lead to complete compromise of the pfSense firewall's REST API configuration, potentially impacting confidentiality, integrity, and availability of the firewall management interface and its settings.
Mitigation Recommendations
A fix is available in pfSense-pkg-RESTAPI version 2.9.0, which removes the sub-administrative settings sync permission and requires full administrative privileges for the HA settings sync endpoint. Users should upgrade to version 2.9.0 or later. As a workaround before upgrading, revoke the `api-v2-system-restapi-settings-sync-post` privilege from all non-administrative users. Additionally, configure REST API Access Control Lists (ACLs) and/or firewall rules to restrict API endpoint access to trusted administrator and HA peer IP addresses.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-20T17:39:41.372Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ad8ccb04d27ba8daab502d4
Added to database: 10/21/2026, 14:31:12 UTC
Last enriched: 10/21/2026, 14:45:18 UTC
Last updated: 10/21/2026, 16:16:22 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.