Image Gallery – Photo Grid & Video Gallery (Modula) <= 2.13.3 - Missing Authorization to Arbitrary Directory Listing
Strategic Overview
- Status
- Patched in 2.13.4
- Affected Plugin
- Modula Image Gallery – Photo Grid & Video Gallery
- Affected Version
<= 2.13.3- CVSS
- 6.5Medium
- Weakness type
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CVE
CVE-2025-13891
At a glance
CVE-2025-13891 is a medium-severity Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in the Modula Image Gallery WordPress plugin, affecting versions <= 2.13.3. It carries a CVSS score of 6.5 (reachable over the network; low attack complexity; high confidentiality impact). The root cause is a missing authorization check on a reachable function. The issue is fixed in version 2.13.4; sites on affected versions should update now. Disclosed December 2025, reported by Dmitrii Ignatyev.
Vulnerability Overview
The Image Gallery – Photo Grid & Video Gallery plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 2.13.3. This is due to the modula_list_folders AJAX endpoint that lacks proper path validation and base directory restrictions. While the endpoint verifies user capabilities (Author+ with upload_files and edit_posts permissions), it fails to validate that user-supplied directory paths reside within safe directories. This makes it possible for authenticated attackers, with Author-level access and above, to enumerate arbitrary directories on the server via the modula_list_folders endpoint.
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. A successful exploit has high impact on confidentiality.
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Reaching this weakness in Modula Image Gallery <= 2.13.3 takes a caller who can reach the endpoint. Path traversal happens when user-controlled text is used to build a filesystem path without being constrained to an intended directory, so sequences like ../ walk the resolved path somewhere else.
Depending on the operation, it means reading files outside the intended folder — wp-config.php being the usual target — or writing to and deleting paths the web server can touch. For Modula Image Gallery the fix is 2.13.4: builds <= 2.13.3 are affected, anything from 2.13.4 onward is not.
Remediation
Update to version 2.13.4, or a newer patched version
How does WordSec protect against this?
The attempt arrives as an ordinary request to Modula Image Gallery: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Modula Image Gallery 2.13.4 closes this, and updating the plugin is the step that ends it.
- Firewall
- Alerts
External References
Related records
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 - 6.4CVE-2026-65475: Modula Image Gallery Stored XSS
CVE-2026-65475 - 6.4CVE-2026-42688: Modula Image Gallery Stored XSS
CVE-2026-42688 - 6.4CVE-2026-23976: Modula Image Gallery <= 2.13.4 Stored XSS
CVE-2026-23976 - 6.4CVE-2024-9416: Modula Image Gallery <= 2.10.1 Stored DOM-Based XSS
CVE-2024-9416
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C