Modula Image Gallery CVE-2025-13891
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Author-level WordPress account
-
DeliverySend crafted modula_list_folders AJAX request
-
ExploitInject directory traversal path
-
ExecutionEnumerate arbitrary server directories
-
ImpactMap 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
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.
Primary rating from Vendor (wordfence).
CVSS VectorVendor: wordfence
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB