CVE-2025-13891
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe Image Gallery – Photo Grid & Video Gallery WordPress plugin contains a path traversal vulnerability in the modula_list_folders AJAX endpoint. Although the endpoint properly validates user capabilities (Author+ with upload_files and edit_posts permissions), it fails to validate that user-supplied directory paths remain within allowed base directories. This allows authenticated attackers with Author-level access to enumerate arbitrary directories on the server by manipulating path parameters.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Confirm the plugin is installedIn WordPress admin, go to Plugins > Installed Plugins and look for 'Image Gallery - Photo Grid & Video Gallery' (modula) or check wp-content/plugins/ directory for a folder starting with 'modula'Affected if The plugin is active and installed
-
Identify the installed plugin versionIn Plugins list view, click on the plugin name to reveal the version number, or read the main plugin file header in wp-content/plugins/modula-gird-lite/ or modula-best-grid-gallery/Affected if Version is 2.13.3 or earlier (or version unknown and no patch is confirmed)
-
Verify the modula_list_folders AJAX endpoint is accessibleCheck if the WordPress site responds to wp-admin/admin-ajax.php?action=modula_list_folders - this requires a valid nonces and Author+ permissions to trigger the vulnerable code pathAffected if The endpoint returns a valid JSON response instead of a 403 error, indicating the AJAX handler is registered and processing requests
-
Confirm Author-level users exist with upload permissionsIn WordPress admin Users > All Users, check for any user with the Author role, or users with upload_files and edit_posts capabilitiesAffected if At least one user with Author (or higher) role with upload_files capability exists, allowing them to access the vulnerable endpoint
-
Audit recent access logs for modula_list_folders activityReview server access logs (Apache/Nginx) for requests to admin-ajax.php with action=modula_list_folders and look for path parameters that traverse beyond expected directories (e.g., ../../../etc)Affected if Suspicious path traversal patterns are found in the logs
You are affected if the modula plugin is installed with version 2.13.3 or earlier AND the modula_list_folders AJAX endpoint is accessible to at least one Author-level user in your WordPress environment.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate the plugin to a version beyond 2.13.3 that includes proper path validation and base directory restrictions. If no patched version is available, disable the plugin until a fix is released.
Version 2.13.4 or later
- Log in to WordPress admin dashboard
- Navigate to Plugins > Installed Plugins
- Find the 'Image Gallery – Photo Grid & Video Gallery' plugin
- Click 'Update now' if an update is available, or manually download the latest version from wordpress.org/plugins/modula-best-grid-gallery/ and upload it
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,560.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-13891 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-13891 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data