Auth bypass in Getgrav Grav
CVE-2026-72822
The getgrav/grav-plugin-api Composer package before 1.0.13 (affected <= 1.0.12) fails to enforce API key scope caps on the disable2fa endpoint. Unlike the sibling generate2fa endpoint, disable2fa authorizes the admin (non-self) path solely via ACL reads (isSuperAdmin/hasPermission) and never invokes requirePermission(), so the api_key_scopes cap is never applied. As a result, a holder of a narrow-scope API key on a super account, or a non-super account whose ACL includes api.users.write, can force-disable two-factor authentication on any non-super target account via POST /api/v1/users/{user}/2fa/disable without providing a TOTP code, facilitating account takeover.
Vulnerability class: Broken Authentication
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.006, 46.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Getgrav Grav — versions 0, 1.0.13
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-22p9-6fh4-mmf2) (vendor-advisory)
- VulnCheck Advisory: Grav before 1.0.13 Authentication Bypass via disable2fa (third-party-advisory)