Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Contributor account on target
-
DeliveryAccess vulnerable gallery endpoint
-
ExploitSubmit crafted SQL injection parameter
-
ExecutionDatabase executes manipulated query
-
ImpactExfiltrate sensitive WordPress data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated WordPress account at the Contributor role or higher (CVSS PR:L), so the attacker must be able to register or be granted contributor access - sites with open registration or many guest authors are realistically exposed, while single-admin sites are not. No user interaction is needed (UI:N) and the attack is fully network-reachable (AV:N) against the plugin's gallery handling in Gallery <= 4.7.8. The limiting factors are the required contributor-level credential and the presence/version of the gallery-plugin; the specific vulnerable parameter or endpoint was not detailed in the provided data and should be confirmed from the Patchstack advisory. |
| Impact | The supplied CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:L, 8.5) indicates a network-reachable, low-complexity attack requiring low privileges and no user interaction, with high confidentiality impact and a scope change. The most important mitigating signal is PR:L: this is NOT an unauthenticated flaw - the attacker must already hold a Contributor (or higher) account, which substantially narrows the exploit population to sites permitting open registration or hosting many semi-trusted authors. No EPSS score was provided, and the vulnerability is not in CISA KEV, so there is no evidence of active exploitation; likewise no POC was referenced, so this is best treated as a credible but not-yet-weaponized issue. One inconsistency worth verifying: the CVSS vector asserts S:C (scope change) and I:N/A:L, which is an unusual impact profile for SQL injection - typical SQLi yields direct integrity impact (data modification) rather than none, so the vendor's scoring should be confirmed against the actual sink. Priority is moderate-to-high for multi-author WordPress sites running this plugin, and lower for single-admin sites where untrusted contributor accounts do not exist. |
| Exploit ScenarioDerived | An attacker registers or obtains a Contributor account on a WordPress site running Gallery <= 4.7.8, then submits a crafted request to a vulnerable gallery parameter that breaks out of the intended SQL query. The injected query reads sensitive database contents such as password hashes, secret keys, or other users' data, all without any interaction from an administrator. No public POC was referenced in the source data, but the low attack complexity makes manual exploitation straightforward for an authenticated user. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 26, 2026
SQL injection in the WordPress 'Gallery' plugin (gallery-plugin) through version 4.7.8 lets authenticated low-privilege users (Contributor role and above) inject crafted SQL via plugin-handled parameters, exposing the WordPress database. Tracked as CVE-2026-57642 (CWE-89) and reported by Patchstack, the flaw carries a CVSS 3.1 base score of 8.5; there is no public exploit identified at time of analysis and it is not listed in CISA KEV. A Contributor account is required, which limits exploitation to sites that allow self-registration or otherwise provision contributor-level access.
RemediationAI
Upgrade the Gallery plugin to a release later than 4.7.8 as soon as the vendor publishes a fixed version; the input data does not contain an exact patched version number, so confirm the fixed release directly via the Patchstack advisory (https://patchstack.com/database/wordpress/plugin/gallery-plugin/vulnerability/wordpress-gallery-plugin-4-7-8-sql-injection-vulnerability?_s_id=cve) - patch status is best described as no specific vendor-released fix version identified in the available data. Because exploitation requires a Contributor account, the most effective compensating controls are to disable open user registration (Settings > General > 'Anyone can register') or lower the default new-user role below Contributor, and to audit existing Contributor/Author accounts for untrusted users; the trade-off is reduced ability for legitimate guest authors to self-register. As an additional layer, deploy a WordPress WAF (for example Patchstack's virtual patch or equivalent ruleset) to block SQL injection patterns against the plugin endpoints, accepting the usual risk of false positives on legitimate gallery requests. If the plugin is not essential, deactivating and removing it eliminates the exposure entirely.
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 affected component is the BestWebSoft-style 'Gallery' plugin for WordPress, a PHP-based extension that manages image galleries through the WordPress admin and database layer. The root cause is CWE-89 (improper neutralization of special elements in an SQL command): user-controllable input reaches a database query without proper parameterization/escaping, allowing the attacker to alter query structure. WordPress plugins typically build queries against the shared MySQL/MariaDB backend using $wpdb; when developer code concatenates request parameters instead of using $wpdb->prepare(), an attacker with access to the vulnerable gallery endpoint can manipulate the resulting query. No CPE strings were supplied in the input, so the precise affected configuration is identified only by the plugin slug 'gallery-plugin' and the version ceiling of 4.7.8.
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:C/C:H/I:N/A:L
Contributor account required so PR:L; network, low-complexity, no interaction; SQLi reads database (C:H) with limited write potential (I:L) and no availability impact.
Primary rating from Vendor (patchstack).
CVSS VectorVendor: patchstack
DescriptionCVE.org
Contributor SQL Injection in Gallery <= 4.7.8 versions.
Executive ViewAI
A SQL injection vulnerability in WordPress Gallery plugin v4.7.8 and earlier allows authenticated contributors to access the WordPress database directly, potentially exposing sensitive data including customer information and system credentials. This affects organizations using WordPress with contributor-level accounts or self-registration enabled, creating an immediate data breach risk for any site where internal users or public contributors are provisioned.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict or remove contributor role assignments; (2) Disable WordPress self-registration; (3) Implement database query logging and alerting for suspicious SQL patterns; (4) Deploy WAF rules blocking SQL injection patterns in plugin parameters; (5) Enforce principle of least privilege for database user running WordPress; (6) Consider disabling the Gallery plugin entirely until patched.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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-39757
GHSA-pj5w-v4fq-q95p
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB