PT-2026-71995 · Grav · Grav-Plugin-Api
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
getgrav/grav-plugin-api versions prior to 1.0.13
Description
The getgrav/grav-plugin-api plugin fails to validate that the scopes of a newly created API key are a subset of the caller's scopes within the
createApiKey() function. The self-target path of requireApiKeyPermission() only requires the baseline api.access scope, and the scopes for the new key are read directly from the request body without a subset check. This allows an attacker with a minimal-scope API key on a super account to submit an empty scopes array to create an unscoped, full-access super key, bypassing scope restrictions and potentially leading to remote code execution (RCE) via configuration write.Recommendations
Update getgrav/grav-plugin-api to version 1.0.13 or later.
Fix
RCE
Incorrect Privilege Assignment
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Grav-Plugin-Api