CVE-2025-13891

Image Gallery – Photo Grid & Video Gallery (Modula) <= 2.13.3 - Missing Authorization to Arbitrary Directory Listing

2025-12-11 18:40
Dmitrii Ignatyev

Strategic Overview

Status
Patched in 2.13.4
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
View all Modula Image Gallery – Photo Grid & Video Gallery vulnerabilities

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

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C