CVE-2026-72822

Grav before 1.0.13 Authentication Bypass via disable2fa

Published Aug 14, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerable Grav API allows an actor with a narrow‑scope API key to disable two‑factor authentication on any target user without providing a TOTP. The flaw results from the disable2fa endpoint bypassing API key scope caps and never invoking requirePermission. As a consequence, an attacker can force‑disable 2FA and gain unauthorized access as the target user, effectively taking over their account. This represents a severe identity compromise and is classified as CWE‑306.

Affected Systems

The issue affects the Grav CMS (getgrav:grav) and its grav‑plugin‑api package prior to version 1.0.13, specifically all releases up to and including 1.0.12. Administrators who rely on API keys that include api.users.write or that are tied to super‑admin accounts are vulnerable.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity. The EPSS score is < 1%, indicating a low probability of exploitation, but the lack of a TOTP requirement and reliance solely on API key scope create a straightforward exploitation path. An attacker possessing a valid API key with limited scopes can POST to /api/v1/users/{user}/2fa/disable and immediately remove two‑factor protection. The vulnerability is not listed in the CISA KEV catalog, but its high impact warrants rapid mitigation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Grav to version 1.0.13 or later
  • Revoke any API keys that possess api.users.write or are linked to super‑admin accounts and replace them with more restrictive keys
  • If an upgrade cannot be performed immediately, temporarily block external access to the /api/v1/users/…/2fa/disable endpoint or restrict API traffic via firewall rules

Generated by OpenCVE AI on August 24, 2026 at 11:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Grav before 1.0.13 Authentication Bypass via disable2fa
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-306
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-306

    Missing Authentication for Critical Function

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 24, 2026, 10:28 AM
Reserved
Aug 10, 2026, 3:12 PM
Status
Deferred
Published
Aug 14, 2026, 12:16 PM
Modified
Aug 31, 2026, 8:38 PM