CVE-2025-13891 Image Gallery – Photo Grid & Video Gallery (Modula) <= 2.13.3 - Missing Authorization to Arbitrary Directory Listing
Authenticated attackers with Author-level access can enumerate arbitrary server directories due to missing path validation in the Modula WordPress plugin.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-13891?
CVE-2025-13891 is a medium-severity path traversal vulnerability in wpchill Modula Image Gallery – Photo Grid & Video Gallery, published on 12 Dec 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Weakness: CWE-22
Which versions are affected by CVE-2025-13891?
How do I fix CVE-2025-13891?
No fix has been published for CVE-2025-13891 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-13891 being exploited?
There is no known exploitation of CVE-2025-13891 in the wild and no public exploit code.
Sources
Also known as GHSA-qqg9-g7xg-4wp2.