CVE-2025-13641 Details
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.
A local file inclusion vulnerability has been identified in the Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress, affecting all versions through 3.59.12. The vulnerability arises from inadequate path validation in the 'template' shortcode parameter, allowing absolute paths to be specified. This flaw enables authenticated attackers with Contributor-level access or higher to include and execute arbitrary PHP files on the server, circumventing web server restrictions such as those imposed by .htaccess. Exploitation of this vulnerability could result in unauthorized information disclosure, execution of malicious code within the WordPress environment, and potentially remote code execution if combined with arbitrary file upload capabilities.
Users are advised to update the NextGEN Gallery plugin to version 4.0.0 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 18, 2025CISA-ADP
Assessed Dec 18, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-98 | Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Imagely NextGEN Gallery | <= 3.59.12 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 18, 2025 | CVE Modified | [email protected] |
| Dec 18, 2025 | New CVE Received | [email protected] |
Volerion