Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain WordPress admin credentials
-
DeliveryAuthenticate to wp-admin panel
-
ExploitNavigate to Photo Gallery plugin category list view
-
ExecutionSubmit crafted SQL payload via 's' search parameter
-
PersistInjected SQL executes inside get_var()/get_results() calls
-
ImpactExfiltrate database contents via UNION or blind technique
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 a valid WordPress account with administrator-level privileges or higher - confirmed by the CVSS:3.1 PR:H metric. The attacker must be able to authenticate to the WordPress admin panel (wp-admin) and reach the Photo Gallery by Ays plugin's image categories list view, which is where the 's' parameter is processed. The vulnerability is not exploitable by subscriber, contributor, editor, or shop manager roles. Three conditions limit exploitation: (1) the Photo Gallery by Ays plugin must be installed and active on the target site; (2) the attacker must possess or separately obtain valid administrator credentials; (3) the wp-admin interface must be network-reachable from the attacker's position. Sites that restrict wp-admin by IP allowlist, require VPN access, or enforce multi-factor authentication on admin accounts significantly reduce realistic exploitability despite the network attack vector. |
| Impact | The CVSS 3.1 score of 4.9 (Medium) accurately reflects the constrained real-world risk of this vulnerability. The PR:H metric is the dominant limiting factor: exploitation requires a valid WordPress administrator account, which dramatically narrows the attack surface - an actor who already holds admin credentials has numerous native means to access database content without chaining an exploit. The AV:N/AC:L metrics confirm that once credentials are in hand, exploitation is straightforward over the network with no additional complexity. EPSS data is absent from the available intelligence, preventing probability-based triage. KEV status is not listed and no public exploit code has been identified, consistent with the high privilege bar deterring automated or opportunistic exploitation. The unchanged scope (S:U) and I:N/A:N impact components confirm the blast radius is limited strictly to confidentiality - an attacker cannot modify data or disrupt availability through this path. For the majority of deployments this is a low-urgency remediation item, though shared hosting or SaaS WordPress environments where administrator access is distributed across many tenant accounts face moderately elevated risk due to the broader credential attack surface. |
| Exploit ScenarioDerived | An attacker who has obtained WordPress administrator credentials - through credential stuffing, phishing, or a previously compromised account - navigates to the Photo Gallery plugin's image categories management page within wp-admin and submits a crafted value via the 's' search parameter. The unsanitized input is passed directly into $wpdb->get_var() or $wpdb->get_results(), allowing the attacker to inject UNION-based or time-based blind SQL clauses that progressively dump user credential hashes, WordPress secret keys, or other sensitive database contents. No public proof-of-concept code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 01, 2026
SQL injection in Photo Gallery by Ays - Responsive Image Gallery (all versions through 6.8.2) allows authenticated administrators to extract arbitrary data from the WordPress database by appending malicious SQL to the 's' search parameter. The vulnerability spans two distinct code paths in the plugin's category list table class - record_count() via $wpdb->get_var() and prepare_items()/get_image_categories() via $wpdb->get_results() - supporting both blind and UNION-based exfiltration techniques. No public exploit has been identified at time of analysis; the high privilege requirement significantly constrains realistic attack scenarios.
RemediationAI
Upstream fix available (PR/commit) per WordPress SVN changeset revision 3655818 at https://plugins.trac.wordpress.org/changeset?reponame=&old=3655818%40gallery-photo-gallery&new=3655818%40gallery-photo-gallery; a specific released patched version number is not stated in the available data and could not be independently confirmed, so administrators should update the plugin to the latest version available in the WordPress plugin repository and verify the installed version reflects a release later than 6.8.2 post-update. As a compensating control prior to patching, restrict wp-admin access to trusted IP ranges via web server access controls (e.g., Nginx allow/deny directives or Apache mod_authz_host rules) or a Web Application Firewall rule targeting the 's' parameter on the plugin's admin list endpoint - note that IP-based restrictions may disrupt legitimate remote administration. The Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/7f45b7d0-6816-45dc-b373-b63a42bbb9f1 should be monitored for confirmation of the patched version number.
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 flaw is a textbook CWE-89 (Improper Neutralization of Special Elements in an SQL Command) caused by insufficient escaping of the 's' parameter before it is passed to WordPress's database abstraction layer. The WordPress $wpdb class provides $wpdb->prepare() as the canonical mechanism for parameterizing queries; its absence or improper application in class-gallery-photo-gallery-categories-list-table.php (confirmed at lines 63, 224, 226, 234, and 428 in the tagged 6.8.2 SVN source) allows the raw search string to flow unmodified into SQL statements. Two separate $wpdb call sites are affected, enabling both value-returning (get_var) and row-returning (get_results) query contexts to be exploited, which broadens the exfiltration surface. The affected product is identified by CPE cpe:2.3:a:ays-pro:photo_gallery_by_ays_-_responsive_image_gallery:*:*:*:*:*:*:*:*, covering all versions up to and including 6.8.2.
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:H/UI:N/S:U/C:H/I:N/A:N
Administrator credentials required (PR:H); read-only database exfiltration means no integrity or availability impact; network-accessible admin panel justifies AV:N.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The Photo Gallery by Ays - Responsive Image Gallery plugin for WordPress is vulnerable to generic SQL Injection via the 's' parameter in all versions up to, and including, 6.8.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with administrator-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The vulnerability exists across two execution paths - $wpdb->get_var() in record_count() and $wpdb->get_results() in prepare_items()/get_image_categories() - enabling both blind and UNION-based exfiltration techniques.
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-68974
GHSA-pf53-j3gw-rp58
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB