Loading...
Skip to main content

CVE-2026-27899 — Vulnerability in github.com/h44z/wg-portal — CVE...

HIGH

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

Published February 26, 2026Updated March 23, 2026Source: osv

Summary

# Privilege Escalation to Admin via User Self-Update in wg-portal ## Summary 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. Tested against wg-portal v2.1.2 (Docker image `wgportal/wg-portal:v2`). ## Root Cause 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. ## Impact After the exploit, the attacker has full admin access to the WireGuard VPN management portal. They can: - Read and modify every user account - Create, modify, and delete WireGuard peers on any interface - View WireGuard interface configurations - Disable or lock other user accounts - Access the full user list and their API tokens ## Patches The problem was fixed in the latest release, [v2.1.3](https://github.com/h44z/wg-portal/releases/tag/v2.1.3). The [docker images](https://hub.docker.com/r/wgportal/wg-portal) for the tag 'latest' built from the master branch also include the fix.

Advisory Timeline

  • First published February 26, 2026 (228 days ago).
  • Last revised March 23, 2026 — 24 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/h44z/wg-portal to 2.1.3 or later
go get github.com/h44z/wg-portal@v2.1.3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: go (1).

PackageEcosystemAffectedFixed In
github.com/h44z/wg-portal
go
All versions2.1.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-269
    Improper Privilege ManagementMITRE
  • CWE-863
    Incorrect AuthorizationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-27899?
WireGuard Portal is Vulnerable to Privilege Escalation via User Self-Update to Admin Level This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-27899?
CVE-2026-27899 affects github.com/h44z/wg-portal. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-27899 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-5rmx-256w-8mj9
GO-2026-4566

Related CVEs

  • CVE-2026-107809
    HIGH

    Nginx-UI AuthRequired token cookie fallback enables CSRF against management APIs

  • CVE-2026-107813
    HIGH

    Nginx UI: Incomplete fix of CVE-2026-84315 - the api/cluster router was not - wrapped in RequireSecureSession, so those sensitive mutations run without OTP step-up

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies