Image Gallery – Photo Grid & Video Gallery <= 2.12.28 - Improper Authorization to Authenticated (Author+) Arbitrary Image File Move
Strategic Overview
- Status
- Patched in 2.12.29
- Affected Plugin
- Modula Image Gallery – Photo Grid & Video Gallery
- Affected Version
<= 2.12.28- CVSS
- 4.3Medium
- Weakness type
- CWE-285 · Improper Authorization
- CVE
CVE-2025-12494
At a glance
CVE-2025-12494 is a medium-severity Improper Authorization vulnerability in the Modula Image Gallery WordPress plugin, affecting versions <= 2.12.28. It carries a CVSS score of 4.3 (reachable over the network; low attack complexity). Exploitation requires an authenticated account at Author level or above. The issue is fixed in version 2.12.29; sites on affected versions should update now. Disclosed November 2025, reported by Dmitrii Ignatyev.
Vulnerability Overview
The Image Gallery – Photo Grid & Video Gallery plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the ajax_import_file function in all versions up to, and including, 2.12.28. This makes it possible for authenticated attackers, with author-level access and above, to move arbitrary image files on the server.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user.
CWE-285: Improper Authorization
Reaching this weakness in Modula Image Gallery <= 2.12.28 takes an account at Author level or above. Improper authorization means a permission check exists but does not cover the case being exercised, so a caller who is allowed to do one thing is allowed to do a neighbouring thing as well.
A lower-privileged account performs an action reserved for a higher one, which on a multi-author or membership site means an ordinary user reaching administrative behaviour. For Modula Image Gallery the fix is 2.12.29: builds <= 2.12.28 are affected, anything from 2.12.29 onward is not.
Remediation
Update to version 2.12.29, or a newer patched version
How does WordSec protect against this?
Because it turns on account access, WordSec's login security is the relevant layer: role-based two-factor, captcha and brute-force limits raise the cost of getting the account this needs. None of that substitutes for the fix: Modula Image Gallery 2.12.29 closes this, and updating the plugin is the step that ends it.
- Login Security
- Alerts
External References
Related records
Same weakness class
Other vulnerabilities in Modula Image Gallery – Photo Grid & Video Gallery
- 8.8CVE-2024-12853: Modula Image Gallery <= 2.11.10 Arbitrary File Upload
CVE-2024-12853 - 7.5CVE-2026-39481: Modula Image Gallery PHP Object Injection
CVE-2026-39481 - 7.5CVE-2025-13646: Modula 2.13.1 - 2.13.2 Arbitrary File Upload
CVE-2025-13646 - 7.5CVE-2022-41135: Customizable WordPress… Plugin Settings Change
CVE-2022-41135 - 7.2CVE-2025-13645: Modula 2.13.1 - 2.13.2 Arbitrary File Deletion
CVE-2025-13645 - 6.5CVE-2025-13891: Image Gallery Arbitrary Directory Listing
CVE-2025-13891 - 6.4CVE-2026-65475: Modula Image Gallery Stored XSS
CVE-2026-65475 - 6.4CVE-2026-42688: Modula Image Gallery Stored XSS
CVE-2026-42688
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C