Skip to main content

Grav API Plugin CVE-2026-64852

| EUVDEUVD-2026-62550 HIGH
Missing Authorization (CWE-862)
2026-08-19 security-advisories@github.com
8.7
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege Grav panel user
  2. Delivery
    Identify target privileged account username via admin UI
  3. Exploit
    Craft apiKeyGenerate POST request with target username in route
  4. Execution
    Plugin checks only admin.login, issues API key bound to target account
  5. Persist
    Use generated key to authenticate Grav REST API as target
  6. Impact
    Read, modify, or delete site content with inherited super-admin permissions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a valid Grav panel account with admin.login permission - the minimum permission assigned to every authenticated panel user; no elevated role is needed. The Grav API Plugin must be installed and active on the target Grav CMS instance. The attack is only meaningful on multi-user Grav deployments where at least one non-attacker account holds higher API permissions (api.super, admin.users, or administrative write scopes) that the attacker wishes to inherit. Single-administrator Grav instances where the attacker is the sole panel user have no practical escalation target. The route must include a valid target username that differs from the attacker's own account; guessing or enumerating usernames from the Grav admin user list (visible to panel users) provides this. No non-default configuration, specific platform version, or network position beyond standard authenticated panel access is required.

Impact

The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) is well-calibrated: the attack is network-reachable, requires no special conditions, demands only a basic panel account, and carries high confidentiality, integrity, and availability impact due to the inherited permissions. The CVSS vector's PR:L directly reflects the realistic threat model - in any multi-author or multi-editor Grav deployment, content managers and editorial accounts represent a plausible attacker pool that is not typically considered privileged. No EPSS data was provided and the vulnerability does not appear in CISA KEV at time of analysis, suggesting exploitation has not been widely observed, though absence from KEV does not imply low exploitability given the trivial attack conditions; even a mid-sized municipal IT team in walbrzych managing a multi-author Grav site should treat this as a priority patch given that a single compromised or malicious editor account could silently escalate to full API superadmin control. No conflicts exist between the CVSS vector and the description - both consistently indicate a straightforward, authenticated, network-accessible privilege escalation with no mitigating attack complexity.

Exploit ScenarioDerived

An attacker with a basic editorial panel account on a Grav site running the API plugin identifies the username of a super-administrator via the Grav admin interface. They send a POST request to the apiKeyGenerate admin task route, inserting the super-admin's username as the target account parameter; because the plugin only checks admin.login, it issues a persistent API key bound to the super-admin account. The attacker then uses that key to authenticate against the Grav REST API with full api.super permissions, enabling unrestricted read and write access to all site content. No public exploit code has been identified, but the attack requires only an HTTP client and knowledge of a target username.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 19, 2026

Privilege escalation in the Grav API Plugin (prior to 1.0.8) allows any authenticated panel user to generate or revoke API keys on behalf of arbitrary accounts, including super-administrators, by exploiting an insufficient authorization check in the apiKeyGenerate and apiKeyRevoke admin task handlers. The plugin enforced only the baseline admin.login permission - held by every panel user - without verifying that the caller had rights over the target account specified in the route parameter, enabling a low-privilege user to mint persistent API credentials carrying the target's full permissions. No public exploit has been identified at time of analysis; the issue is fixed in version 1.0.8.

RemediationAI

Upgrade the Grav API Plugin to version 1.0.8, the first release containing the authorization fix; the release is available at https://github.com/getgrav/grav-plugin-api/releases/tag/1.0.8 and the fixing commit is ed16f0aaa9b398c6f179fb8f51e0fa53e4ed8a30. Before and after upgrading, audit existing API keys via the admin panel or ApiKeyManager storage to identify any keys generated for accounts other than those expected - unexpected keys bound to privileged accounts are an indicator of prior exploitation and should be immediately revoked. If upgrading is not immediately feasible, disabling the Grav API plugin entirely eliminates the attack surface at the cost of headless API functionality; this is preferable to leaving it enabled on multi-user sites. Restricting panel access to only fully trusted users reduces the attacker pool but does not remediate the underlying flaw and should not be treated as a standalone mitigation.

Affected VersionsENISA

grav-plugin-api < 1.0.8

Affected Packages

euvd grav_plugin_api fix: 1.0.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Grav API Plugin is a PHP component that wraps Grav CMS's content layer in a RESTful headless API. The vulnerable logic resided in user/plugins/api/api.php, specifically in the handleAdminApiKeyTask() method, which handled two admin tasks - apiKeyGenerate and apiKeyRevoke - but only called authorize('admin.login') before proceeding. CWE-862 (Missing Authorization) precisely describes the flaw: authentication was confirmed, but the authorization decision - whether the authenticated caller was permitted to act on the target account - was never made. Because admin.login is the minimum permission every panel user holds, any logged-in user could supply a foreign username in the route and trigger key generation or revocation for that account. The ApiKeyManager then bound the resulting credential to the target user's permission set, including api.super or administrative write scopes if the target held them. The fix, visible in commit ed16f0aaa9b398c6f179fb8f51e0fa53e4ed8a30, introduces the authorizeApiKeyTarget() method, which gates cross-account key management behind admin.users or admin.super, and additionally prevents non-super-admin callers from targeting super-admin accounts - mirroring permission checks already present on the REST API path.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 8.7 HIGH
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
vuln.today AI 8.8 HIGH

Network-accessible via HTTP with only a basic panel account (PR:L); scope unchanged as impact stays within the Grav CMS security boundary; C/I/A all High due to inherited super-admin API permissions enabling full content read, write, and deletion.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 19, 2026 - 17:02 EUVD
CVE Published
Aug 19, 2026 - 16:18 cve.org
HIGH 8.7

DescriptionCVE.org

Grav API Plugin is a RESTful API for Grav CMS that provides full headless access to your site's content. Prior to 1.0.8, the Grav API plugin intercepts the apiKeyGenerate and apiKeyRevoke admin tasks in user/plugins/api/api.php and authorizes the caller with only admin.login. A basic panel user can select another account from the route, create a persistent ApiKeyManager credential bound to that target, and inherit the target's API permissions, including api.super or administrative write access when present. This issue is fixed in version 1.0.8.

Executive ViewAI

Why It Matters

Grav API Plugin versions prior to 1.0.8 contain a privilege escalation vulnerability allowing any authenticated panel user to generate or revoke API credentials on behalf of administrators, effectively granting persistent super-admin access. Organizations using this plugin must immediately upgrade to mitigate the risk of administrative account compromise and lateral movement through API credential abuse.

Business Impact: High
Compensating Controls

Vendor-released patch: version 1.0.8. Pending immediate upgrade, restrict panel user access to administrative interface only for users requiring it; enforce mandatory multi-factor authentication for all admin panel logins; disable or isolate the API Plugin entirely if not actively required; implement network segmentation limiting API plugin access to trusted internal networks only.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Low
niche PHP CMS plugin, limited enterprise deployment footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy