Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-65896: External Control of File Name or Path in getgrav grav

0
High
VulnerabilityCVE-2026-65896cvecve-2026-65896
Published: 07/23/2026 (07/23/2026, 11:42:16 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: grav

Description

Grav API Plugin (Composer package getgrav/grav-plugin-api) before 1.0.10 fails to properly validate the slug field in the POST /pages/{route}/move endpoint. PagesController::move() sanitizes the slug only with ltrim($body['slug'], '.'), which strips leading periods but does not neutralize '/' or '..' segments. An authenticated API caller with the api.pages.write permission can supply path traversal sequences (e.g., 01.home/../../../pwned) to move an entire page directory (content and media) to an arbitrary writable location outside user/pages/, including outside the Grav installation.

CVSS v4.0

Score 7.1high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

Packagistmore threats →ai
getgrav/grav-plugin-api
pkg:composer/getgrav/grav-plugin-api
Affected versions
<1.0.10

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/23/2026, 12:37:05 UTC

Technical Analysis

The Grav API Plugin before 1.0.10 fails to properly validate the slug parameter in the POST /pages/{route}/move endpoint. The PagesController::move() method sanitizes the slug only by stripping leading periods using ltrim, but does not prevent path traversal sequences such as '/' or '..'. An authenticated API caller with the api.pages.write permission can exploit this to move entire page directories to arbitrary writable locations outside the designated user/pages/ directory, including locations outside the Grav installation. This represents an external control of file name or path vulnerability.

Potential Impact

An attacker with authenticated API access and the api.pages.write permission can move page directories and their contents to arbitrary writable locations outside the intended directory structure. This could lead to unauthorized file system modifications outside the Grav installation, potentially impacting system integrity and security. The vulnerability has a CVSS 4.0 score of 7.1 (high severity), indicating significant risk if exploited.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict API access to trusted users only and monitor for suspicious use of the move endpoint. Avoid granting api.pages.write permission broadly. Review and harden file system permissions to limit writable locations accessible by the Grav process.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-07-23T11:03:13.092Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a6207989c2644c7f80b69fe

Added to database: 07/23/2026, 12:22:48 UTC

Last enriched: 07/23/2026, 12:37:05 UTC

Last updated: 07/23/2026, 13:22:42 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses