Description
grav-plugin-api before 1.0.6 fails to validate super-admin status in createApiKey, generate2fa, and disable2fa endpoints, allowing non-super api.users.write managers to escalate to super-admin. Attackers can mint API keys bound to super-admin accounts or strip 2FA from super-admin users to achieve full instance takeover.
Published: 2026-07-17
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Grav plugin API fails to verify that the caller is a super‑administrator when handling the createApiKey, generate2fa, and disable2fa endpoints. As a result, a user with the api.users.write role, which normally does not have super‑admin authority, can generate API keys that are bound to super‑admin accounts or disable two‑factor authentication for super‑admin users. This flaw allows an attacker to gain full super‑admin control of the Grav instance, enabling any system‑wide action normally reserved for trusted administrators.

Affected Systems

The vulnerability affects the Grav content‑management system, specifically the grav-plugin-api component, for all releases earlier than 1.0.6. No other vendors or product versions are listed as susceptible.

Risk and Exploitability

The CVSS score of 8.7 indicates a high‑severity vulnerability, and the EPSS score of less than 1% suggests a low likelihood of widespread exploitation at present. The vulnerability is not catalogued in CISA’s KEV registry. Based on the description, the likely attack vector involves an authenticated user with api.users.write permissions invoking the compromised endpoints; the attacker could either mint a super‑admin API key or strip two‑factor authentication from a super‑admin, thereby achieving a full instance takeover. The exploitation requires only API access with the above role, making the attack relatively straightforward for compromised accounts.

Generated by OpenCVE AI on July 31, 2026 at 00:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Grav to version 1.0.6 or later to receive the vendor fix that validates super‑admin status for affected API endpoints.
  • Revoke all API keys that were created prior to the upgrade, especially those that may have been bound to super‑admin accounts.
  • Restrict or remove the api.users.write role from users whose responsibilities do not require key management, and enforce a principle of least privilege.
  • Require and enforce two‑factor authentication for all super‑admin accounts to mitigate the risk of credential compromise.
  • Continuously monitor API activity logs for anomalous createApiKey or disable2fa requests and investigate any unauthorized actions.

Generated by OpenCVE AI on July 31, 2026 at 00:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 17 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 17 Jul 2026 00:30:00 +0000

Type Values Removed Values Added
Description grav-plugin-api before 1.0.6 fails to validate super-admin status in createApiKey, generate2fa, and disable2fa endpoints, allowing non-super api.users.write managers to escalate to super-admin. Attackers can mint API keys bound to super-admin accounts or strip 2FA from super-admin users to achieve full instance takeover.
Title grav-plugin-api < 1.0.6 Privilege Escalation via createApiKey
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-639
CWE-862
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics 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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-17T18:05:50.649Z

Reserved: 2026-07-13T16:40:10.962Z

Link: CVE-2026-62233

cve-icon Vulnrichment

Updated: 2026-07-17T12:40:14.521Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T01:00:14Z

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

  • CWE-862

    Missing Authorization