Skip to main content
Vulnerability Database/CVE-2026-111664

CVE-2026-111664: Safing Portmaster Auth Bypass Vulnerability

CVE-2026-111664 is an authorization bypass flaw in Safing Portmaster that lets unprivileged processes force malicious updates. This post explains its technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111664 Overview

CVE-2026-111664 is a missing authorization vulnerability [CWE-306] in Safing Portmaster versions prior to 2.2.5. The flaw resides in the POST /api/v1/updates/from-url endpoint, which was registered with api.PermitAnyone and exposed without authentication to local processes. Any unprivileged local process can invoke the endpoint to supply an attacker-controlled index URL. The index bypasses version checks and auto-apply settings, forcing installation of older Safing-signed releases that still carry previously fixed vulnerabilities. The resulting downgrade re-introduces patched issues and undermines the trust model of the update subsystem.

Critical Impact

Local unprivileged users can force Safing Portmaster to downgrade to vulnerable prior releases, re-exposing the host to previously remediated flaws.

Affected Products

  • Safing Portmaster versions prior to 2.2.5
  • The vulnerable updates/from-url API endpoint in service/core/api.go
  • The UpdateFromURL function in service/updates/module.go

Discovery Timeline

  • 2026-10-16 - CVE-2026-111664 published to NVD
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-111664

Vulnerability Analysis

Safing Portmaster exposes an internal HTTP API used by the local user interface to interact with the service. The update subsystem registered a POST /api/v1/updates/from-url endpoint that accepted an arbitrary URL in the request body and triggered BinaryUpdates().UpdateFromURL(...). The endpoint was declared with the api.PermitAnyone write permission, meaning it did not require authentication, elevated privileges, or user interaction. Because Portmaster runs with elevated privileges to manage network filtering, any process on the local host, including sandboxed or unprivileged ones, could reach the endpoint and influence the privileged updater.

The downgrade primitive is significant because Portmaster retains cryptographic trust for all releases signed by Safing. By pointing the updater at an attacker-hosted index that references older signed artifacts, the attacker reinstalls a legitimately signed but vulnerable binary. The service treats the resulting update as valid and skips the normal version-progression and auto-apply gating.

Root Cause

The root cause is a missing authorization check on a sensitive privileged action. The endpoint handler bypassed Portmaster's own index management by passing the user-supplied URL directly to updateAndUpgrade with the force and apply flags enabled.

Attack Vector

Exploitation requires local access to the loopback API served by Portmaster. The attacker sends a single HTTP POST with the malicious index URL as the request body. No credentials, prompts, or UI interactions are involved. Once the downgrade completes, the attacker chains known vulnerabilities present in the restored Portmaster release.

go
// Vulnerable endpoint registration removed in the fix (service/core/api.go)
// Source: https://github.com/safing/portmaster/commit/f943e1eaf98f45bc48490bf288e1d63c04929ae0
-	if err := api.RegisterEndpoint(api.Endpoint{
-		Path:        "updates/from-url",
-		WriteMethod: "POST",
-		Write:       api.PermitAnyone,
-		ActionFunc: func(ar *api.Request) (string, error) {
-			err := module.instance.BinaryUpdates().UpdateFromURL(string(ar.InputData))
-			if err != nil {
-				return err.Error(), err
-			}
-			return "upgrade triggered", nil
-		},
-		Name: "Replace current version from the version supplied in the URL",
-	}); err != nil {
-		return err
-	}

The removed UpdateFromURL helper in service/updates/module.go invoked updateAndUpgrade with both force and apply set to true, which bypassed version checks and auto-apply policy. See the GitHub Commit f943e1e for the complete patch.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-111664

Indicators of Compromise

  • Portmaster process making outbound HTTP(S) requests to index or artifact URLs not hosted on updates.safing.io.
  • Portmaster binary version regressing from a newer release to a version earlier than 2.2.5 without administrator action.
  • Loopback HTTP POST requests to /api/v1/updates/from-url observed in local process telemetry.
  • Unexpected writes to Portmaster's update staging directory originating from the service worker custom update from url.

Detection Strategies

  • Monitor local process behavior for unprivileged processes connecting to the Portmaster API port and issuing POST requests.
  • Baseline the installed Portmaster version via EDR software inventory and alert on unexplained downgrades.
  • Inspect Portmaster logs for the worker name custom update from url and for update operations referencing non-default index URLs.

Monitoring Recommendations

  • Collect Portmaster service logs centrally and forward them to the SIEM for retention and correlation with endpoint telemetry.
  • Track installed-version drift across the fleet to surface downgrade attempts across endpoints.
  • Alert on new network connections initiated by the Portmaster updater to destinations outside the vendor-controlled update infrastructure.

How to Mitigate CVE-2026-111664

Immediate Actions Required

  • Upgrade Safing Portmaster to version 2.2.5 or later on all endpoints. See the GitHub Release v2.2.5.
  • Audit endpoints for a Portmaster version earlier than 2.2.5 and confirm whether a forced downgrade has occurred.
  • Review local process activity for unauthorized access to the Portmaster loopback API.

Patch Information

The fix in commit f943e1e removes the updates/from-url endpoint registration from service/core/api.go and deletes the UpdateFromURL function from service/updates/module.go. The patched build is available in the GitHub Release v2.2.5 and is tracked in GitHub Issue #2292 with additional context in the VulnCheck Advisory for Safing.

Workarounds

  • Restrict local access to the Portmaster API port using host firewall rules where feasible.
  • Limit which local user accounts can run arbitrary code on hosts where Portmaster is deployed.
  • Monitor and alert on any invocation of POST /api/v1/updates/from-url until all systems are confirmed upgraded.
bash
# Verify installed Portmaster version on Linux endpoints
portmaster-core --version

# Confirm the vulnerable endpoint is no longer registered (should return 404 on >= 2.2.5)
curl -i -X POST http://127.0.0.1:817/api/v1/updates/from-url --data 'https://example.invalid/index.json'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.