CVE-2026-65007

Grav before 1.0.8 Missing Authorization on API Key Generation

Published Jul 21, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
The Grav api plugin (grav-plugin-api) before 1.0.8 fails to properly authorize API key generation and revocation: the plugin intercepts the apiKeyGenerate/apiKeyRevoke admin tasks before the account-management ACL runs and authorizes the caller on only the admin.login permission (the baseline permission held by every panel user). This allows any user with admin.login to mint a persistent API key bound to any account, and the forged key inherits the target account's API permissions. On installs where an API-enabled account holds broader permissions, this enables account impersonation and privilege escalation up to account takeover.

Analysis

AI-generated

Technical impact

The Grav API plugin fails to enforce proper authorization before allowing API key generation or revocation. Because the plugin intercepts tasks before the account‑management ACL authorizes the caller, any user who has the basic admin.login permission can create a persistent API key tied to any target account. The forged key inherits the permissions of the target account, which on installations where the account has wider privileges enables impersonation and full privilege escalation, effectively allowing an attacker to take over the account.

Affected Systems

This flaw affects installations of Grav using the grav-plugin-api before version 1.0.8. The affected product is Grav by getgrav; any site running Grav prior to the 1.0.8 release is vulnerable.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity risk. The EPSS score is less than 1%, suggesting a low but non‑zero likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Because the attack relies solely on the admin.login permission, which every panel user possesses, an internal attacker or compromised user can easily spawn the attack. The attacker can then generate a key bound to a target user, granting full API access and full account control. Thus the exploit path is simple and requires no external access beyond normal administrative login privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Grav to version 1.0.8 or newer, which includes the authorization fix for API key generation and revocation.
  • If the upgrade cannot be performed immediately, restrict the admin.login permission to a narrow set of trusted users to limit the number of accounts that can generate API keys.
  • Audit existing API keys for unexpected ownership and consider rotating or revoking keys that were created before the vulnerability was fixed.

Generated by OpenCVE AI on July 30, 2026 at 17:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The Grav api plugin (grav-plugin-api) before 1.0.8 fails to properly authorize API key generation and revocation: the plugin intercepts the apiKeyGenerate/apiKeyRevoke admin tasks before the account-management ACL runs and authorizes the caller on only the admin.login permission (the baseline permission held by every panel user). This allows any user with admin.login to mint a persistent API key bound to any account, and the forged key inherits the target account's API permissions. On installs where an API-enabled account holds broader permissions, this enables account impersonation and privilege escalation up to account takeover.
Title Grav before 1.0.8 Missing Authorization on API Key Generation
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-862
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 23, 2026, 2:29 PM
Reserved
Jul 21, 2026, 11:32 AM
Status
Deferred
Published
Jul 21, 2026, 12:19 PM
Modified
Oct 24, 2026, 8:10 PM