CVE-2026-27899 json
WireGuard Portal Vulnerable to Privilege Escalation to Admin via User Self-Update
published 2026-02-26 8 mo ago modified 2026-06-17 4 mo ago also GHSA-5rmx-256w-8mj9 , GO-2026-4566 , EUVD-2026-8797
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 28%
- public exploits
- 0
- none known
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.
Patch / fix
- go github.com/h44z/wg-portal 2.1.3
- wgportal wireguard_portal 2.1.3
- govulncheck-vulndb openSUSE Leap 15.6 0.0.20260317T205859-150000.1.152.1
suse advisories SUSE-SU-2026:1042-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
opensuse advisories openSUSE-SU-2026:21483-1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 8 mo ago
Exploit prediction
0.35% chance of exploitation in the next 30 days, higher than 28% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/h44z/wg-portal | <2.1.3 all versions |
2.1.3 |
Affected products
- h44z wg-portal
Classification
References
-
github.com
/h44z/wg-portal/security/advisories/GHSA-5rmx-256w-8mj9
web, patch, vendor-advisory, advisory
-
github.com
/h44z/wg-portal/commit/fe4485037a25426446ced95050e9498f477bf71d
web, patch
-
nvd.nist.gov
/vuln/detail/CVE-2026-27899
advisory
-
github.com
/h44z/wg-portal
package
-
github.com
/h44z/wg-portal/releases/tag/v2.1.3
web
-
hub.docker.com
/layers/wgportal/wg-portal/v2.1.3/images/sha256-39acfab55598a74e561828b8cb639515ddc222d6c884996111f5ef235aba9e
web
Sources
- CVE List CVE-2026-27899
- GitHub Advisory GHSA-5rmx-256w-8mj9
- NVD CVE-2026-27899
- OSV GO-2026-4566
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.