{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-76012","id":"CVE-2026-76012","title":"NextGEN Gallery code execution in legacy template rendering","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 exte","descriptionLong":"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.","published":"2026-10-30T17:15:33.570Z","updated":"2026-10-30T19:19:10.873Z","reserved":"2026-08-18T18:59:49.405Z","status":"Deferred","rejected":false,"assigner":"Wordfence","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Wordfence"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Wordfence"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"wordfence.com"}],"rating":"high","products":["smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery"],"affectedProducts":[{"vendor":"smub","product":"Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"4.4.1","versionType":"semver"}],"platforms":[]}],"packages":[],"cwes":["CWE-434"],"aliases":[],"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/f8b09972-4d2d-4ab3-bc12-7aba32aefd49?source=cve","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/DisplayType/Controller.php#L564","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L45","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L197","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L1355","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L1465","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.3.0/src/DisplayType/LegacyTemplateLocator.php#L142","tags":[]},{"url":"https://plugins.trac.wordpress.org/changeset/3699076/nextgen-gallery/trunk/src/DisplayType/Controller.php","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00829,"epssPercentile":0.58244,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-76012","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76012","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-76012","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-76012","ok":true,"note":"scored 2026-11-18"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}