Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/trunk/src/DisplayType
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/trunk/src/DisplayType
- https://plugins.trac.wordpress.org/changeset/3415575/nextgen-gallery/trunk/src/D
- https://www.wordfence.com/threat-intel/vulnerabilities/id/0a01e1c9-67f4-4cc1-b58
FAQ
What is CVE-2025-13641?
CVE-2025-13641 is a vulnerability with a CVSS score of 8.8 (HIGH). 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 ...
How severe is CVE-2025-13641?
CVE-2025-13641 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-13641?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.