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, 4.0.3 via the 'template' parameter in gallery shortcodes. This makes it possible for authenticated attackers, with Author-level access and above, to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included.
Problem types
Product status
Any version
Timeline
| 2026-01-27: | Vendor Notified |
| 2026-03-17: | Disclosed |
Credits
Athiwat Tiprasaharn
Itthidej Aramsri
Waris Damkham
References
www.wordfence.com/...-cdaf-42a7-8801-ad2e4945a137?source=cve
plugins.trac.wordpress.org/...Type/LegacyTemplateLocator.php
plugins.trac.wordpress.org/...src/DisplayType/Controller.php
plugins.trac.wordpress.org/...pe%2FLegacyTemplateLocator.php