8.8
/ 10
HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Description
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 3.59.12 via the 'template' shortcode parameter. This is due to insufficient path validation that allows absolute paths to be provided. This makes it possible for authenticated attackers, with Contributor-level access and above, to include and execute arbitrary PHP files on the server, bypassing web server restrictions like .htaccess. Successful exploitation could lead to information disclosure, code execution in the WordPress context, and potential remote code execution if combined with arbitrary file upload capabilities.
AI Analysis
Local File Inclusion vulnerability in NextGEN Gallery plugin for WordPress via 'template' shortcode parameter, allowing authenticated attackers to include and execute arbitrary PHP files
Basic Information
ID
CVE-2025-13641
Source
Wordfence
Published
Dec 18, 2025 at 09:21
Affected Product
Vendor
smub
Product
Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery
Version
*
Affected Versions
smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery *
CWE Classification
AI Assessment
AI Score
8.8 / 10
AI Severity
High
Vendor
WordPress
Product
NextGEN Gallery
Version
3.59.12 and below
References
- www.wordfence.com /threat-intel/vulnerabilities/id/0a01e1c9-67f4-4cc1-b58b-9cc141889d66
- plugins.trac.wordpress.org /browser/nextgen-gallery/trunk/src/DisplayType/LegacyTemplateLocator.php
- plugins.trac.wordpress.org /browser/nextgen-gallery/trunk/src/DisplayType/Controller.php
- plugins.trac.wordpress.org /changeset/3415575/nextgen-gallery/trunk/src/DisplayType/LegacyTemplateLocator.php