Skip to main content

Modula Image Gallery CVE-2025-13891

MEDIUM
Path Traversal (CWE-22)
2025-12-12 security@wordfence.com
6.5
CVSS 3.1 · Vendor: wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain Author-level WordPress account
  2. Delivery
    Send crafted modula_list_folders AJAX request
  3. Exploit
    Inject directory traversal path
  4. Execution
    Enumerate arbitrary server directories
  5. Impact
    Map filesystem for follow-on attack

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated WordPress account at Author level or above possessing the upload_files and edit_posts capabilities on a site running the Image Gallery - Photo Grid & Video Gallery (modula-best-grid-gallery) plugin at version 2.13.3 or earlier; the specific attack surface is the modula_list_folders AJAX action, which validates capabilities but not that user-supplied directory paths stay within safe base directories. Limiting factors: the Author-level authentication requirement (not an anonymous/unauthenticated flaw), the fact that impact is directory enumeration/reconnaissance rather than code execution or guaranteed file-content theft, and that it affects only sites where the plugin is installed and untrusted users hold Author+ roles. No user interaction or non-default configuration is needed beyond having the plugin active.

Impact

This is a moderate-risk, authentication-gated information disclosure issue, not an urgent priority. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N = 6.5) reflects a network-reachable, low-complexity attack but requires Author-level authentication with upload_files and edit_posts capabilities (PR:L), which materially shrinks the attacker population to users who already hold a trusted content role. The C:H rating is somewhat generous: the modula_list_folders endpoint enumerates arbitrary directory listings (filesystem structure/recon) rather than reading arbitrary file contents, so the practical confidentiality impact is reconnaissance of server layout rather than exfiltration of secrets - verify whether the endpoint returns file contents or only names before treating C:H as literal. EPSS is low at 0.42% (34th percentile), there is no CISA KEV listing and no public exploit identified at time of analysis, all consistent with an authenticated, limited-impact bug that is unlikely to see mass automated exploitation. Net: a real but low-to-moderate priority that should be patched during normal cycles, prioritized higher only on multi-author sites where low-trust Author accounts exist.

Exploit ScenarioDerived

An attacker who holds or obtains an Author-level WordPress account (e.g., a contributor on a multi-author blog, or via a compromised author credential) sends a crafted authenticated AJAX request to the modula_list_folders endpoint supplying a directory path with traversal sequences. Because the endpoint checks capabilities but not path containment, it returns listings of directories outside the intended gallery/upload folders, letting the attacker map the server's filesystem to locate config files, backups, or other sensitive paths for follow-on attacks. No public exploit code is identified at time of analysis, though the patched source and CleanTalk/Wordfence writeups document the flawed endpoint.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 01, 2026

Authenticated WordPress users with Author-level or higher privileges (holding upload_files and edit_posts) can enumerate arbitrary directories on the server through the modula_list_folders AJAX action in the Image Gallery - Photo Grid & Video Gallery (Modula) plugin, affecting all versions up to and including 2.13.3. The endpoint performs a capability check but never validates that the caller-supplied directory path stays within a permitted base directory, so traversal sequences return directory listings and expose server file-system structure; the practical impact is reconnaissance-grade information disclosure rather than code execution or guaranteed file-content theft. There is no CISA KEV entry and no public exploit code identified at time of analysis, and EPSS is 0.42% (34th percentile), making this a moderate, authentication-gated issue rather than an urgent priority.

RemediationAI

Update the Modula Image Gallery plugin past the affected range, since all versions through 2.13.3 are vulnerable; an upstream code fix exists in the plugin repository, visible as changeset 3414176 versus 3407949 (https://plugins.trac.wordpress.org/changeset?new=3414176%40modula-best-grid-gallery%2Ftrunk&old=3407949%40modula-best-grid-gallery%2Ftrunk), which corresponds to an upstream fix (PR/commit), though a released patched version has not been independently confirmed - verify the current tagged release on the plugin's WordPress.org page and on the vendor advisories at https://www.wordfence.com/threat-intel/vulnerabilities/id/71e587ec-ceb6-48ca-9a1a-599d9d988b4d?source=cve and https://research.cleantalk.org/cve-2025-13891/ before declaring remediation complete; if a fixed release is not yet available, deactivate the plugin until one ships. Where upgrading is not immediately possible, the most effective compensating control is to remove Author-and-above privileges from untrusted accounts and strip the upload_files and edit_posts capabilities from any role that does not strictly require media publishing, since exploitation requires exactly those capabilities - the trade-off is that content contributors lose the ability to upload or manage media. A WAF or application-layer rule that blocks or filters requests to wp-admin/admin-ajax.php where action=modula_list_folders carries path separators (../, ..\, encoded variants) provides partial protection but can be evaded with encoding tricks and may break legitimate gallery folder browsing. Additional hardening includes restricting wp-admin access to trusted IP ranges and monitoring AJAX logs for modula_list_folders requests containing traversal sequences; note that the impact is limited to information disclosure, so these temporary measures should be weighed against disruption to legitimate editorial workflows.

Affected ProductsAI

The WordPress plugin Image Gallery - Photo Grid & Video Gallery, distributed under the slug modula-best-grid-gallery (also branded as Modula), is affected in all versions up to and including 2.13.3; no formal CPE identifiers were provided in the source data. The vulnerable code is the modula_list_folders AJAX endpoint in includes/admin/class-modula-gallery-upload.php, with the referenced upstream source lines visible in the 2.12.26 tag (https://plugins.trac.wordpress.org/browser/modula-best-grid-gallery/tags/2.12.26/includes/admin/class-modula-gallery-upload.php#L160, #L230, #L411). Any WordPress site with the plugin active and at least one Author-level or higher account (with upload_files and edit_posts) is exposed; sites that do not grant Author+ roles to untrusted users are not exploitable in practice. Advisory details are available from Wordfence (https://www.wordfence.com/threat-intel/vulnerabilities/id/71e587ec-ceb6-48ca-9a1a-599d9d988b4d?source=cve) and CleanTalk research (https://research.cleantalk.org/cve-2025-13891/).

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a classic CWE-22 path traversal implemented inside a WordPress plugin AJAX handler. WordPress plugins expose privileged actions through wp-admin/admin-ajax.php, and modula_list_folders is one such action registered by the Modula gallery plugin; the relevant logic lives in includes/admin/class-modula-gallery-upload.php (referenced lines 160, 230 and 411 of tag 2.12.26). The handler confirms the caller's capabilities (Author role or above with upload_files and edit_posts) but then passes user-supplied path input into directory-listing logic without canonicalizing it or confirming the resolved path is a descendant of an intended upload/gallery base directory, allowing ../ style sequences to escape the sandbox. Because the code path is only reachable via an authenticated AJAX request over the network, the CVSS vector is AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, i.e. confidentiality-only impact. No CPE strings were supplied, so the affected product is identified by its WordPress.org slug, modula-best-grid-gallery, rather than by a formal CPE binding.

Know when Wordpress Plugin gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (wordfence) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

Network-reachable AJAX endpoint (AV:N/AC:L), requires Author-level auth (PR:L), no UI; confidentiality-only via directory enumeration (C:H defensible, I/A:N), scope unchanged.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (wordfence).

CVSS VectorVendor: wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Medium
common WordPress gallery plugin with substantial but not ubiquitous install base
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-44000 CRITICAL POC
9.8 Oct 20

Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2025-27007 CRITICAL POC
9.8 May 01

The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-4295 CRITICAL POC
9.8 Jun 05

The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy