Read the docs
TI-2026-22243 Aliases CVE-2026-27899GHSA-5rmx-256w-8mj9

WireGuard Portal Vulnerable to Privilege Escalation to Admin via User Self-Update

Priority MEDIUM 40CWE-269Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Privilege escalation, Security bypass
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-269 and CWE-863.

Summary

WireGuard Portal (or wg-portal) is a web-based configuration portal for WireGuard server management. Prior to version 2.1.3, any authenticated non-admin user can become a full administrator by sending a single PUT request to their own user profile endpoint with `"IsAdmin": true` in the JSON body. After logging out and back in, the session picks up admin privileges from the database. When a user updates their own profile, the server parses the full JSON body into the user model, including the `IsAdmin` boolean field. A function responsible for preserving calculated or protected attributes pins certain fields to their database values (such as base model data, linked peer count, and authentication data), but it does not do this for `IsAdmin`. As a result, whatever value the client sends for `IsAdmin` is written directly to the database. After the exploit, the attacker has full admin access to the WireGuard VPN management portal. The problem was fixed in v2.1.3. The docker images for the tag 'latest' built from the master branch also include the fix.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00348 28th percentileScored 2026-11-07
Fix Fixed wg-portal (h44z): 2.1.3github.com/h44z/wg-portal (Go): 2.1.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
h44zwg-portalbefore 2.1.32.1.3Patch availableCNA
—github.com/h44z/wg-portal (Go)before 2.1.32.1.3Patch availableGHSA-5rmx-256w-8mj9
  • wg-portal Vendorh44z Affected before 2.1.3 Fixed in 2.1.3 Patch available CNA
  • github.com/h44z/wg-portal (Go) Vendor— Affected before 2.1.3 Fixed in 2.1.3 Patch available GHSA-5rmx-256w-8mj9

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:wgportal:wireguard_portal:*:*:*:*:*:*:*:*before 2.1.3VulnerableWgportal
  • cpe:2.3:a:wgportal:wireguard_portal:*:*:*:*:*:*:*:* Versions before 2.1.3 Vulnerable ·Wgportal

Remediation

  • Fix · CNA wg-portal (h44z) Fixed in 2.1.3
  • Fix · GHSA-5rmx-256w-8mj9 github.com/h44z/wg-portal (Go) Fixed in 2.1.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-27899
  2. 2026-10-03 Alias added: GHSA-5rmx-256w-8mj9

References

  • TI-2026-39390 Improper authorization in h44z wg-portal CVSS 3.1MEDIUM 4.3

Sources