# CVE-2026-27899: WireGuard Portal Vulnerable to Privilege Escalation to Admin via User Self-Update

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-02-26T00:50:00.278Z
- Modified: 2026-06-17T10:27:50.727Z
- Also known as: GHSA-5rmx-256w-8mj9, GO-2026-4566
- Weaknesses: CWE-269, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- h44z wg-portal: < 2.1.3
- github.com/h44z/wg-portal (Go): before 2.1.3; all versions
- wgportal wireguard_portal: before 2.1.3

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/h44z/wg-portal/security/advisories/GHSA-5rmx-256w-8mj9> (advisory, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27899> (advisory)
- <https://github.com/h44z/wg-portal/commit/fe4485037a25426446ced95050e9498f477bf71d> (fix, web)
- <https://github.com/h44z/wg-portal> (package)
- <https://github.com/h44z/wg-portal/releases/tag/v2.1.3> (web)
- <https://hub.docker.com/layers/wgportal/wg-portal/v2.1.3/images/sha256-39acfab55598a74e561828b8cb639515ddc222d6c884996111f5ef235aba9e7b> (web)

## Sources

- CVE List: [CVE-2026-27899](https://www.cve.org/CVERecord?id=CVE-2026-27899), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-5rmx-256w-8mj9](https://github.com/advisories/GHSA-5rmx-256w-8mj9), CC-BY-4.0, modified 2026-03-23
- Go Vulnerability Database: [GO-2026-4566](https://pkg.go.dev/vuln/GO-2026-4566), CC-BY-4.0, modified 2026-03-23
- NVD: [CVE-2026-27899](https://nvd.nist.gov/vuln/detail/CVE-2026-27899), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27899 · Whole record: https://cve.day/CVE-2026-27899.json · Rebuilt by cve.day 2026-11-25T22:59:14.932Z
