The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.4.1 via the legacy_render functio…
- CVSS
- 7.5High
- Chance of exploitation (EPSS)
- 0.91%
- Published
- Oct 30, 2026
- In the news
- Not yet
What to do
A serious unsafe file upload flaw in Smub Photo Gallery Sliders Proofing And Themes Nextgen Gallery that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Smub Photo Gallery Sliders Proofing And Themes Nextgen Gallery
- Through 4.4.1
Description
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.4.1 via the legacy_render function. This is due to broken authorization on the Lightroom gallery_edit endpoint combined with mass assignment of gallery path and unrestricted file upload into a registered template directory, whose extension check uses a substring match that accepts sanitized .php_ filenames as valid templates. This makes it possible for authenticated attackers, with custom-level access and above, to execute code on the server. Exploitation requires the authenticated attacker to be the stored author of at least one existing NextGEN gallery, as ownership of that gallery is the sole authorization check gating the mass-assignment and upload steps.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-76012 published (CVSS 7.5) (Oct 30, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Fri, Oct 30, 2026
- CVECVE-2026-76012 published (CVSS 7.5)CVE Program · 18:18 UTC
References 8
- plugins.trac.wordpress.org /browser/nextgen-gallery/tags/4.3.0/src/DisplayType/Controller.php#L564
- plugins.trac.wordpress.org /browser/nextgen-gallery/tags/4.3.0/src/DisplayType/LegacyTemplateLocator.php#L142
- plugins.trac.wordpress.org /browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L1355
- plugins.trac.wordpress.org /browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L1465
- plugins.trac.wordpress.org /browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L197
- plugins.trac.wordpress.org /browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L45
- plugins.trac.wordpress.org /changeset/3699076/nextgen-gallery/trunk/src/DisplayType/Controller.php
- www.wordfence.com /threat-intel/vulnerabilities/id/f8b09972-4d2d-4ab3-bc12-7aba32aefd49?source=cve