CVE-2026-6566 Details
Description
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to and including 4.2.0. This is due to insufficient object-level authorization in the image deletion REST flow where the permission callback for DELETE /imagely/v1/images/{id} only checks 'NextGEN Manage gallery' permissions and does not enforce gallery ownership or 'NextGEN Manage others gallery' permissions. This makes it possible for authenticated attackers, with Subscriber-level privileges and 'NextGEN Manage gallery' capability, to delete gallery images belonging to other users as well as their associated image files from disk when deleteImg is enabled (default).
A vulnerability allowing Insecure Direct Object Reference (IDOR) has been identified in the Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress, affecting versions through 4.2.0. The issue arises from inadequate object-level authorization in the image deletion process via the REST API. Specifically, the permission check for deleting images only verifies 'NextGEN Manage gallery' rights, failing to consider gallery ownership or 'NextGEN Manage others gallery' permissions. This flaw enables authenticated users with Subscriber-level access and the 'NextGEN Manage gallery' capability to delete images from other users' galleries, along with the corresponding image files from the server, when the deleteImg option is active (which is the default setting).
Users are advised to update the Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin to version 4.2.1 or a later patched version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 20, 2026CISA-ADP
Assessed May 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-639 | Authorization Bypass Through User-Controlled Key | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery | <= 4.2.0 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 20, 2026 | New CVE Received | [email protected] |
Volerion