PT-2026-63976 · Grav · Grav-Plugin-Api
CVSS v4.0
7.1
High
| Vector | AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Grav API Plugin versions prior to 1.0.10
Description
An issue exists where the software fails to properly validate the
slug field in the 'POST /pages/{route}/move' endpoint. The PagesController::move() function only strips leading periods, failing to neutralize '/' or '..' segments. This allows an authenticated API caller with the api.pages.write permission to use path traversal sequences to move an entire page directory, including content and media, to an arbitrary writable location outside the user/pages/ directory, potentially extending beyond the Grav installation.Recommendations
Update Grav API Plugin to version 1.0.10 or later.
Avoid using the
slug parameter in the 'POST /pages/{route}/move' endpoint until the update is applied.Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Grav-Plugin-Api