CVE-2026-72822: Grav before 1.0.13 Authentication Bypass via disable2fa

Published Aug 14, 2026
·
Updated

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 apikeyscopes 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.

Affected Software

1 affected component
composer/getgrav/grav<=1.0.12

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade getgrav/grav-plugin-api to a version that resolves this vulnerability.

    Fixed in 1.0.13
  2. Compensating control

    Restrict POST /api/v1/users/{user}/2fa/disable so only super accounts can access it (e.g., enforce an admin-only gate and do not allow non-super API keys with broad ACLs to call disable2fa).

  3. Compensating control

    Remove or reduce the ACL permission api.users.write for non-super API keys so they cannot force-disable 2FA on other user accounts via /api/v1/users/{user}/2fa/disable.

Event History

Aug 14, 2026
CVE Published
via MITRE·11:35 AM
Data Sourced
via MITRE·11:35 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-72822?

CVE-2026-72822 has a critical severity rating of 9.8.

2

How do I fix CVE-2026-72822?

To fix CVE-2026-72822, update the getgrav/grav-plugin-api package to version 1.0.13 or later.

3

What system is affected by CVE-2026-72822?

CVE-2026-72822 affects the Grav CMS before version 1.0.13.

4

What type of vulnerability is CVE-2026-72822?

CVE-2026-72822 is an authentication bypass vulnerability.

5

What components are impacted by CVE-2026-72822?

CVE-2026-72822 impacts the disable2fa API endpoint of the Grav plugin.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203