{"id":"CVE-2026-27899","published":"2026-02-26T00:50:00Z","modified":"2026-02-26T16:02:52Z","title":"WireGuard Portal Vulnerable to Privilege Escalation to Admin via User Self-Update","vendor":"h44z","product":"wg-portal","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00629,"percentile":0.44552,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"},{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/h44z/wg-portal/security/advisories/GHSA-5rmx-256w-8mj9","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":8.91},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"h44z","affectedVersions":[{"vendor":"h44z","product":"wg-portal","versions":["< 2.1.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-26T16:02:22.653465Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/h44z/wg-portal","vulnerableRanges":["<2.1.3","all versions"],"patched":["2.1.3"],"from":["GHSA-5rmx-256w-8mj9","GO-2026-4566"],"provenance":"source"}],"summary":{"text":"WireGuard Portal (wg-portal) by h44z, a web-based WireGuard server management portal, contains a flaw in its user profile update handling, where the server writes the client-supplied IsAdmin field to the database without protection. An authenticated non-admin user with network access to the portal can send a single PUT request to their own profile endpoint setting IsAdmin to true, and after logging out and back in, gain full administrator access to the VPN management portal, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:25Z"},"euvd":{"id":"EUVD-2026-8797","exploited":false,"provenance":"source"}}