CVE-2025-13891
The Image Gallery – Photo Grid & Video Gallery plugin for WordPress …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tags/2.12.26/includes/admin/cl
- plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tags/2.12.26/includes/admin/cl
- plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tags/2.12.26/includes/admin/cl
- plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=3414176%40modula-
- research.cleantalk.org/cve-2025-13891/
- www.wordfence.com/threat-intel/vulnerabilities/id/71e587ec-ceb6-48ca-9a1a-599d9d988b4d?sou
- nvd.nist.gov/vuln/detail/CVE-2025-13891
- cve.org/CVERecord?id=CVE-2025-13891
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.