---
id: CVE-2025-13891
title: >-
  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
summary: >-
  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 …
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-22
published: '2025-12-12'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T23:10:00.237'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-13891'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tags/2.12.26/includes/admin/class-modula-gallery-upload.php#L160
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tags/2.12.26/includes/admin/class-modula-gallery-upload.php#L230
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tags/2.12.26/includes/admin/class-modula-gallery-upload.php#L411
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=3414176%40modula-best-grid-gallery%2Ftrunk&old=3407949%40modula-best-grid-gallery%2Ftrunk&sfp_email=&sfph_mail=
    label: security@wordfence.com
  - url: 'https://research.cleantalk.org/cve-2025-13891/'
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/71e587ec-ceb6-48ca-9a1a-599d9d988b4d?source=cve
    label: security@wordfence.com
tags:
  - nvd
epss: 0.00423
epssPercentile: 0.34263
ingestedAt: '2026-09-30T23:29:32.488Z'
---

## 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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
