CVE-2026-72822 Grav before 1.0.13 Authentication Bypass via disable2fa
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
Description
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| getgrav/grav | < 1.0.13 | 1.0.13 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| getgrav/grav | < 1.0.13 | 1.0.13 |
References
- GitHub Security Advisory (GHSA-22p9-6fh4-mmf2) exploit vendor-advisory
- VulnCheck Advisory: Grav before 1.0.13 Authentication Bypass via disable2fa third-party-advisory
- ENISA EUVD EUVD-2026-58636 third-party-advisory