Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Displa
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Displa
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightr
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightr
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightr
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightr
- https://plugins.trac.wordpress.org/changeset/3699076/nextgen-gallery/trunk/src/D
- https://www.wordfence.com/threat-intel/vulnerabilities/id/f8b09972-4d2d-4ab3-bc1
FAQ
What is CVE-2026-76012?
CVE-2026-76012 is a vulnerability with a CVSS score of 7.5 (HIGH). 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...
How severe is CVE-2026-76012?
CVE-2026-76012 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-76012?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.