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).
Published: 2026-05-20
Score: 4.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The NextGEN Gallery plugin (by Smub) is vulnerable to an insecure direct object reference in all releases up to and including 4.2.0. The vulnerability arises because the permission callback for the REST endpoint DELETE /imagely/v1/images/{id} only verifies that a user has the 'NextGEN Manage gallery' capability, but it does not check that the gallery belongs to the authenticated user or that the user has the higher 'NextGEN Manage others gallery' privilege. Consequently, attackers who can log in with a Subscriber+ role and possess the basic gallery management capability can delete images created by other users, and, when the deleteImg feature is enabled (it is enabled by default), the associated image files are also removed from the server’s file system.

Affected Systems

All installations of the WordPress plugin NextGEN Gallery that are running version 4.2.0 or earlier are affected. The plugin is distributed by Smub and is commonly bundled as a photo gallery, slider, proofing, and theme solution for WordPress sites. No specific minor version increments within the 4.2.0 release series were noted to be safe, so every build up to and including that release remains vulnerable.

Risk and Exploitability

The vulnerability has a CVSS score of 4.3, categorizing it as moderate. Because the attacker must be authenticated and must have been granted the gallery management capability, the exploit window is narrower than with publicly exploitable flaws. The EPSS score is not available, and the CVE is not listed in CISA’s KEV catalog, suggesting no widespread active exploitation. The attack vector is likely remote via the REST API, and it does not provide code execution or privilege escalation beyond the existing role. The impact is loss of gallery content and potential disruption of site media assets.

Generated by OpenCVE AI on May 20, 2026 at 07:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the NextGEN Gallery plugin to the latest version (≥ 4.2.1) where the REST delete endpoint includes proper gallery ownership checks.
  • Remove the 'NextGEN Manage gallery' capability from Subscriber roles and limit it to trusted users who actually need gallery management.
  • If an immediate upgrade is not possible, disable the deleteImg feature by setting it to false in the plugin configuration or via wp-config to stop images from being removed from the file system.
  • Optionally, restrict access to the /imagely/v1/images/* REST endpoint to administrators only via a plugin or .htaccess rule.

Generated by OpenCVE AI on May 20, 2026 at 07:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 20 May 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 20 May 2026 07:45:00 +0000

Type Values Removed Values Added
First Time appeared Smub
Smub photo Gallery, Sliders, Proofing And Themes – Nextgen Gallery
Wordpress
Wordpress wordpress
Vendors & Products Smub
Smub photo Gallery, Sliders, Proofing And Themes – Nextgen Gallery
Wordpress
Wordpress wordpress

Wed, 20 May 2026 06:30:00 +0000

Type Values Removed Values Added
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).
Title Photo Gallery, Sliders, Proofing and Themes <= 4.2.0 - Insecure Direct Object Reference to Authenticated (Subscriber+) Image Deletion via REST API
Weaknesses CWE-639
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}


Subscriptions

Smub Photo Gallery, Sliders, Proofing And Themes – Nextgen Gallery
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-05-20T15:54:05.752Z

Reserved: 2026-04-18T17:51:56.808Z

Link: CVE-2026-6566

cve-icon Vulnrichment

Updated: 2026-05-20T15:49:22.659Z

cve-icon NVD

Status : Deferred

Published: 2026-05-20T07:16:16.030

Modified: 2026-05-20T13:54:54.890

Link: CVE-2026-6566

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-20T07:30:25Z

Weaknesses