NEXTGEN-GALLERY · CVE-2026-118191 · Package
FIX → 4.5.6
The NextGEN Gallery WordPress plugin up to and including 4.5.5 fails to validate file paths in its handle_job function. An authenticated user with the NextGEN Manage gallery capability can delete arbitrary files, such as wp-config.php, which can lead to remote code execution.
first public Nov 13, 2026 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Sites running the NextGEN Gallery plugin up to and including 4.5.5 are exposed. Exploitation needs an account with the 'NextGEN Manage gallery' capability, which Administrators have by default and which can be delegated to lower-privileged roles. Sites that do not run the plugin, or that restrict this capability to trusted administrators only, face less risk.
Not affected if capability-restricted-to-admins, plugin-not-installed
Who cares nextgen-gallery, self-hosted, wordpress
4.5.5 and below are affecteds Roles screen (Gallery > Roles) and check which non-administrator roles hold Manage gallery'Upgrade to 4.5.6
4.5.6 or later (Wordfence lists as the patched version)The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the handle_job function in all versions up to, and including, 4.5.5 This makes it possible for authenticated attackers, with custom-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). The 'NextGEN Manage gallery' capability required to reach the vulnerable endpoint is granted to Administrators by default but can be delegated to lower-privileged roles via the plugin's Roles screen.
This page as .md · .json · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
4.5.6NextGEN Manage gallery capability from every non-administrator role on the plugin's Roles screen