← Terug naar overzicht

Grav CMS versions before 2.0.16 contain a path traversal vulnerability in the MediaUploadTrait::deleteFile() method. Authenticated users with media management permissions can exploit this flaw to delete arbitrary files on the server by supplying filenames containing directory traversal sequences (../). The vulnerability exists because the method only validates the basename portion of the filename, while leaving the directory path portion unvalidated. These unvalidated paths containing ../ sequences are then passed directly to PHP's unlink() function, allowing deletion of files outside the intended media storage directory. The flaw is fixed in Grav version 2.0.16. This is a significant security risk as it can lead to deletion of critical system or application files, potentially causing denial of service or aiding further compromise.

Affected products

  • Grav CMS

Related CVE's

  • CVE-2026-72695

Categories

  • Web Technologies