CVE-2025-13891
JSON

6.5medium

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

Severity
6.5medium CVSS:3.1 by Wordfence
Exploit likelihood
0.45% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Wordfence

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.

Affected

Product or packageVersionsReported by
wpchill Modula Image Gallery – Photo Grid & Video Galleryup to 2.13.3CVE List

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

El plugin Image Gallery - Photo Grid & Video Gallery para WordPress es vulnerable a salto de ruta en todas las versiones hasta la 2.13.3, inclusive. Esto se debe al endpoint AJAX modula_list_folders que carece de una validación de ruta adecuada y de restricciones de directorio base. Si bien el endpoint verifica las capacidades del usuario (Autor+ con permisos upload_files y edit_posts), no valida que las rutas de directorio proporcionadas por el usuario residan dentro de directorios seguros. Esto hace posible que atacantes autenticados, con acceso de nivel de Autor y superior, enumeren directorios arbitrarios en el servidor a través del endpoint modula_list_folders.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-13891 changed 2026-04-08CVE Terms of Use
NVDCVE-2025-13891 changed 2026-10-07Public domain