<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cve-2026-72695 - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/cve-2026-72695/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Fri, 18 Sep 2026 01:11:09 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/cve-2026-72695/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Grav CMS Path Traversal in MediaUploadTrait Leading to Arbitrary File Deletion</title><link>https://feed.craftedsignal.io/briefs/2026-09-grav-path-traversal/</link><pubDate>Fri, 18 Sep 2026 01:11:09 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-grav-path-traversal/</guid><description>An authenticated path traversal vulnerability in Grav CMS's MediaUploadTrait allows users with media management permissions to delete arbitrary files on the server by providing crafted file paths.</description><content:encoded><![CDATA[<p>Grav CMS versions 2.0.15 and earlier are vulnerable to a path traversal vulnerability in the <code>MediaUploadTrait::deleteFile()</code> method within <code>system/src/Grav/Common/Media/Traits/MediaUploadTrait.php</code>. The vulnerability arises because the application only performs filename validation on the basename using <code>Utils::checkFilename()</code> while failing to sanitize the directory path component. An authenticated user with media management permissions can exploit this by submitting specially crafted filenames containing directory traversal sequences (e.g., <code>../</code>). When passed to the <code>doRemove()</code> method, these sequences allow the application to bypass directory restrictions and invoke <code>unlink()</code> on files located outside the intended media storage path. This vulnerability can be used to cause a denial of service by deleting critical system configurations, application logic, or authentication-related files, potentially resulting in privilege escalation or complete system disruption.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An authenticated attacker with page or media editing permissions initiates a request to the Grav CMS admin interface.</li>
<li>The attacker triggers a Flex media handling operation, such as editing a page, that allows media deletion.</li>
<li>The attacker intercepts or crafts a POST request to the <code>/admin/pages/[page]/task:save</code> endpoint.</li>
<li>The request payload is modified to include a media deletion marker with a key containing path traversal sequences (e.g., <code>../../data/target.txt</code>).</li>
<li>The application’s <code>FlexMediaTrait::saveUpdatedMedia()</code> method processes the deletion queue, passing the unsanitized traversal string to <code>deleteFile()</code>.</li>
<li>The <code>deleteFile()</code> method validates only the basename (e.g., <code>target.txt</code>), which passes the <code>Utils::checkFilename()</code> filter despite the malicious directory prefix.</li>
<li>The <code>doRemove()</code> method concatenates the path and invokes the PHP <code>unlink()</code> function on the resolved path.</li>
<li>The underlying filesystem executes the deletion of the target file, outside the authorized media directory.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows an authenticated user to delete critical application files, including configuration files such as <code>user/config/system.yaml</code> or <code>user/config/security.yaml</code>, and user account files. This leads to immediate denial of service or potential privilege escalation by removing security restrictions. The impact is significant for environments where untrusted users are granted administrative-level media management access.</p>
<h2 id="recommendation">Recommendation</h2>
<ol>
<li>Update Grav CMS to the version containing the patch for CVE-2026-72695 immediately.</li>
<li>Implement a custom validation logic for the <code>MediaUploadTrait</code> that applies <code>Utils::checkFilename()</code> to the entire file path, as documented in the provided fix.</li>
<li>Audit administrative permissions and restrict media management access to strictly vetted users.</li>
<li>Monitor web server logs for HTTP POST requests to <code>/admin/pages/</code> containing path traversal characters like <code>../</code> or <code>..%2f</code> within the payload.</li>
</ol>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>grav</category><category>cms</category><category>path-traversal</category><category>cve-2026-72695</category><category>file-disclosure</category><category>web-application</category></item></channel></rss>