{"cve":"CVE-2026-27899","nvd":{"published":"2026-02-26T02:16:20.557","modified":"2026-06-17T10:27:50.727","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-863","CWE-269"],"references":["https://github.com/h44z/wg-portal/security/advisories/GHSA-5rmx-256w-8mj9"],"products":["wgportal:wireguard_portal"],"source":"nvd","synced_at":"2026-10-19T22:24:17.937441719+00:00"},"epss":{"cve":"CVE-2026-27899","score":0.00348,"percentile":0.28407,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5rmx-256w-8mj9","url":"https://osv.dev/vulnerability/GHSA-5rmx-256w-8mj9","summary":"WireGuard Portal is Vulnerable to Privilege Escalation via User Self-Update to Admin Level","modified":"2026-03-23T04:56:20.747136990Z","packages":[{"ecosystem":"Go","name":"github.com/h44z/wg-portal","purl":"pkg:golang/github.com/h44z/wg-portal","ranges":["<2.1.3"],"fixed":["2.1.3"]}]},{"id":"GO-2026-4566","url":"https://osv.dev/vulnerability/GO-2026-4566","summary":"WireGuard Portal is Vulnerable to Privilege Escalation via User Self-Update to Admin Level in github.com/h44z/wg-portal","modified":"2026-03-23T04:52:44.388977Z","packages":[{"ecosystem":"Go","name":"github.com/h44z/wg-portal","purl":"pkg:golang/github.com/h44z/wg-portal","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}