<?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>Grav CMS (&lt;= 2.0.15) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/grav-cms--2.0.15/</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/products/grav-cms--2.0.15/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><item><title>Path Traversal Vulnerability in Grav CMS ImageMedium Class</title><link>https://feed.craftedsignal.io/briefs/2026-08-grav-cms-traversal/</link><pubDate>Mon, 03 Aug 2026 16:06:24 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-grav-cms-traversal/</guid><description>Grav CMS 2.0.10 is vulnerable to path traversal in the ImageMedium::watermark() method, allowing unauthenticated attackers to disclose arbitrary image files by traversing outside the media sandbox.</description><content:encoded><![CDATA[<p>Grav CMS version 2.0.10 contains a path traversal vulnerability in the ImageMedium::watermark() method. The vulnerability arises because the application passes an unsanitized image argument to the RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator::findResource() method. The implementation of the file:// scheme branch fails to perform a proper realpath or containment check, relying only on lexical collapse of '..' path segments.</p>
<p>An attacker can exploit this by crafting malicious Markdown image syntax that includes path traversal sequences. This allows the application to resolve and process files located outside of the designated media directory. The system subsequently composites the unauthorized file into a carrier image, caches the resulting file, and serves it through a public-facing, unauthenticated URL. This leads to the unauthorized disclosure of sensitive image data residing on the web server to remote anonymous visitors.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker identifies a Grav CMS instance running version 2.0.10.</li>
<li>Attacker authors a malicious Markdown document containing a crafted image tag.</li>
<li>The image tag includes directory traversal sequences (e.g., ../../) in the watermark parameter.</li>
<li>The ImageMedium::watermark() method receives the malicious payload.</li>
<li>The input is passed to UniformResourceLocator::findResource(), which fails to validate the traversal path.</li>
<li>The application resolves the path to an image file outside the intended web root or media sandbox.</li>
<li>The server processes and composites the unauthorized image into a new file.</li>
<li>The final file is cached and exposed via a public URL, allowing the attacker to download the sensitive content.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for the unauthenticated disclosure of any image file accessible to the web server process. This could result in the exposure of private administrative images, sensitive site metadata, or other assets not intended for public consumption. Given the CVSS score of 7.5, this poses a high risk to data confidentiality for affected web platforms.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritize the identification of all internet-facing instances of Grav CMS version 2.0.10 and upgrade to the latest patched version immediately. Monitor web server access logs for anomalous requests containing path traversal sequences (e.g., ../) targeting image processing parameters or Markdown-related endpoints. Ensure that web server file system permissions follow the principle of least privilege to restrict the web user's access to files outside of the defined document root.</p>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>web-vulnerability</category><category>twig</category><category>information-disclosure</category></item></channel></rss>