Description
The Modula Image Gallery – Photo Grid & Video Gallery plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the upload_image function in all versions up to, and including, 3.0.2. This makes it possible for authenticated attackers, with author-level access and above, to delete arbitrary files on the server. The path restriction to wp-content/uploads is not an effective ownership boundary, as all user attachment files reside within that tree, and Authors trivially satisfy the edit_post check on their own galleries.
References5
- plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tag…
- plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tag…
- plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tag…
- plugins.trac.wordpress.org/changeset?reponame=&old=3701804%40mo…
- www.wordfence.com/threat-intel/vulnerabilities/id/1686f4ad-b114…
Metrics
- CVSS 3.1
-
8.1
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H - EPSS — exploit probability
- 0% percentile: 24 · as of 9 November 2026
- CWE
- CWE-862
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.