CVE-2026-72829

Grav before 1.0.13 API Key Scope Bypass via UsersController

Published Aug 14, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
The Grav API plugin (getgrav/grav-plugin-api) before 1.0.13 contains an API-key scope-cap bypass in UsersController's create() and update() methods. These methods enforce the scope cap only for api.users.write, but gate super-privilege grants on a bare isSuperAdmin() check that reads access.api.super directly without consulting the key's scopes. As a result, an api.users.write-scoped key minted on a super account can set access.api.super or assign a super-granting group to mint or promote a full super account, then authenticate as that account for uncapped administrative privileges.

Analysis

AI-generated

Technical impact

The Grav API plugin before version 1.0.13 has an API‑key scope‑cap bypass in the UsersController’s create() and update() methods. The controller enforces the users.write key scope on most user actions, but it performs a separate check for super‑admin privileges that reads the access.api.super flag directly, ignoring the key’s scopes. Consequently, an attacker who can obtain or forge an API key with only the users.write scope—issued by a super‑admin account—can elevate that key to super‑admin status by setting access.api.super to true or assigning the key to a group that grants super‑admin rights. This allows the attacker to gain unrestricted administrative privileges, providing full control over the Grav installation. The weakness corresponds to CWE‑269: Failure to restrict or consider privilege escalation.

Affected Systems

Any Grav installation using the getgrav/grav-plugin-api before version 1.0.13 is affected. The vulnerability is present in every release of the plugin prior to 1.0.13, regardless of other Grav or system components. Administrators should identify if their Grav instance contains the vulnerable API plugin and whether the instance is using an API key with the users.write scope.

Risk and Exploitability

The CVSS score of 8.7 classifies this vulnerability as high. The EPSS score is < 1%, and the issue is not listed in the CISA KEV catalog, indicating no publicly known exploits at the time of this analysis. The likely attack vector is remote; an attacker needs an API key with users.write scope, which can be obtained through credential compromise, key disclosure, or malicious insider activity. Once the key is in hand, the attacker can remotely send API requests to the UsersController to promote themselves to super‑admin without further authentication steps. Given the high CVSS score and the ability to cause complete administrative takeover, the risk of exploitation is substantial in environments where API keys are exposed or poorly protected.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Grav API plugin to version 1.0.13 or later to restore proper scope enforcement.
  • Revoke or regenerate any API keys that have the users.write scope and were issued by super‑admin accounts.
  • Check the super‑admin accounts in the system; if any have been created or modified through an API key, reset those accounts and remove any unintended super‑privileges.
  • Disable or restrict API access for non‑critical services until a patch is applied, if possible, to reduce the attack surface.
  • Monitor Grav logs for suspicious user creation or modification events and investigate any anomalies promptly.

Generated by OpenCVE AI on August 24, 2026 at 11:25 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': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The Grav API plugin (getgrav/grav-plugin-api) before 1.0.13 contains an API-key scope-cap bypass in UsersController's create() and update() methods. These methods enforce the scope cap only for api.users.write, but gate super-privilege grants on a bare isSuperAdmin() check that reads access.api.super directly without consulting the key's scopes. As a result, an api.users.write-scoped key minted on a super account can set access.api.super or assign a super-granting group to mint or promote a full super account, then authenticate as that account for uncapped administrative privileges.
Title Grav before 1.0.13 API Key Scope Bypass via UsersController
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-269
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-269

    Improper Privilege Management

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