Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain WordPress account with 'NextGEN Manage gallery' capability
-
DeliveryEnumerate target image IDs from other users' gallery embeds or API
-
ExploitSend authenticated DELETE /wp-json/imagely/v1/images/{id} request
-
ExecutionPermission callback validates capability but skips ownership check
-
PersistImage record deleted from database
-
ImpactPhysical image file deleted from server disk
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Exploitation requires two concurrent conditions: (1) a valid WordPress authenticated session at Subscriber level or higher, and (2) the 'NextGEN Manage gallery' capability explicitly assigned to that account by an administrator - this capability is not part of any default WordPress role and must be deliberately granted, which is the primary limiting factor. Physical file deletion from disk further requires the 'deleteImg' setting to be enabled, which is the default configuration but can be disabled by administrators. Unauthenticated exploitation is not possible (CVSS PR:L confirms authentication is required). The attacker must also be able to identify or enumerate valid image IDs belonging to other users' galleries, which is feasible via gallery embeds or API responses. Exploitation is NOT limited to any specific platform or hosting configuration beyond a WordPress installation running NextGEN Gallery ≤4.2.0 with at least one user holding the 'NextGEN Manage gallery' capability. |
| Impact | CVSS 4.3 (Medium) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N accurately reflects the low-privilege network-exploitable nature and limited integrity scope, but may understate real-world business impact: permanent deletion of irreplaceable gallery images from disk is a materially worse outcome than the score suggests for photography or media-dependent sites. Attack complexity is genuinely low once the 'NextGEN Manage gallery' capability is held - no race condition, no chained vulnerability, no user interaction required. The critical limiting factor is the prerequisite of both a valid authenticated session and the 'NextGEN Manage gallery' capability, which is not a default WordPress role assignment and must be deliberately granted by an administrator; this meaningfully narrows the attacker pool compared to a pure Subscriber-level flaw. No EPSS data was provided. No KEV listing and no public exploit code identified, consistent with the moderate priority signal. The unchanged scope (S:U) confirms exploitation is bounded within the application. Sites that have granted gallery management capabilities broadly to contributor-class users, or those running multi-tenant gallery setups, face the highest realistic risk. |
| Exploit ScenarioDerived | A WordPress contributor account that has been granted the 'NextGEN Manage gallery' capability - for example, a guest photographer on a shared platform - authenticates to the site and sends a series of DELETE requests to /wp-json/imagely/v1/images/{id}, iterating over integer image IDs observed in gallery embeds or enumerated via the gallery API. The permission callback confirms the capability is held and processes each deletion without checking ownership, permanently removing both the database records and the physical image files from the server for galleries belonging to other users. No public exploit code has been identified at time of analysis, but the attack requires only standard authenticated HTTP requests with no specialized tooling. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 20, 2026
Insecure Direct Object Reference in NextGEN Gallery WordPress plugin through version 4.2.0 allows authenticated attackers with Subscriber-level privileges and the 'NextGEN Manage gallery' capability to delete gallery images belonging to other users, including their physical files from disk. The DELETE /imagely/v1/images/{id} REST endpoint validates only the 'NextGEN Manage gallery' capability, entirely omitting gallery ownership checks and the 'NextGEN Manage others gallery' permission - making cross-user image destruction possible at low privilege. No public exploit code identified at time of analysis and no CISA KEV listing; however, when deleteImg is enabled (default), exploitation results in irreversible file-level data loss beyond what the CVSS 4.3 integrity score alone conveys.
RemediationAI
Update the NextGEN Gallery plugin to a version beyond 4.2.0 that incorporates the fix from Trac changeset 3533432 (https://plugins.trac.wordpress.org/changeset/3533432/nextgen-gallery); since the exact patched release version is not independently confirmed from available data, verify the current stable version in the WordPress plugin repository before deploying. As an immediate compensating control prior to patching, administrators should audit all user accounts holding the 'NextGEN Manage gallery' capability via WordPress role management and revoke it from any Subscriber-level accounts that do not require it - this directly eliminates the exploitation path since the capability is not default-assigned. Additionally, disabling the 'deleteImg' option in NextGEN Gallery settings will prevent physical file deletion from disk if exploitation occurs, preserving image files even if logical deletion of database records succeeds; note that this workaround does not block unauthorized record deletion and may affect intended gallery cleanup workflows. No side effects are expected from the capability audit beyond restricting low-privilege gallery management operations.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability affects the WordPress REST API layer of the NextGEN Gallery plugin (CPE: cpe:2.3:a:smub:photo_gallery,_sliders,_proofing_and_themes_-_nextgen_gallery:*:*:*:*:*:*:*:*), published by SMUB. The root cause is CWE-639 (Authorization Bypass Through User-Controlled Key): the REST permission callback for DELETE /imagely/v1/images/{id} accepts a caller-controlled image ID and checks only whether the requester holds 'NextGEN Manage gallery' capability, never validating that the target image belongs to the requesting user's gallery, nor requiring the elevated 'NextGEN Manage others gallery' capability that should govern cross-gallery operations. Because the image ID is an integer predictable or enumerable from the gallery frontend, an attacker can trivially target records outside their own scope. When the plugin's deleteImg option is active - its default state - the deletion also removes the underlying image file from the server filesystem, escalating the impact from a logical record deletion to permanent file destruction.
Know when Wordpress Plugin gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Primary rating from Vendor (Wordfence) · only source for this CVE.
CVSS VectorVendor: Wordfence
DescriptionCVE.org
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).
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
EUVD-2026-31063
GHSA-4hjj-956w-4cwm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB