Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 3.59.12 - Authenticated (Contributor+) Local File Inclusion via 'template'
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.
CVE-2025-13641 is a high severity with CVSS 8.8 Remote Code Execution issue affecting the Plugin Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery. It affects Versions up to 3.59.12 and is fixed in 4.0.0.
CVE-2025-13641 is tracked for the Plugin Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery as high severity with CVSS 8.8. The affected range is Versions up to 3.59.12. Update Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery to 4.0.0 or newer where that version is compatible with the site.
| Software Type | Plugin |
|---|---|
| Software Slug |
nextgen-gallery
View on wordpress.org
|
| CVE | CVE-2025-13641 |
| Patched Versions |
4.0.0
|
| Affected Versions |
Versions up to 3.59.12
|
Related CVEs for Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery
These internal links group the same WordPress plugin by CVE, issue type, severity, and patch status so operators and search engines can connect the full vulnerability cluster.
NextGEN Gallery <= 3.2.10 - SQL Injection
NextGEN Gallery <= 2.1.56 - Authenticated Local File Inclusion & SQL injection
WordPress Gallery Plugin – NextGEN Gallery <= 1.9.12 - Arbitrary File Upload
Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 4.0.4 - Authenticated (Author+) Local File Inclusion
WordPress Gallery Plugin – NextGEN Gallery <= 3.4.7 - Cross-Site Request Forgery to Arbitrary File Upload
WordPress Gallery Plugin – NextGEN Gallery <= 3.4.7 - Cross-Site Request Forgery
NextGen Gallery <= 2.1.10 - Unrestricted File Upload
WordPress Gallery Plugin – NextGEN Gallery < 2.0.77.3 - Arbitrary File Upload
This record contains material that is subject to copyright
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. Read more
License: CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy. Read more