Skip to main content

Photo Gallery by Ays EUVDEUVD-2026-68974

| CVE-2026-76006 MEDIUM
SQL Injection (CWE-89)
2026-09-01 Wordfence GHSA-pf53-j3gw-rp58
4.9
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain WordPress admin credentials
  2. Delivery
    Authenticate to wp-admin panel
  3. Exploit
    Navigate to Photo Gallery plugin category list view
  4. Execution
    Submit crafted SQL payload via 's' search parameter
  5. Persist
    Injected SQL executes inside get_var()/get_results() calls
  6. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Photo Gallery by Ays – Responsive Image Gallery 0 ≤6.8.2

Affected Packages

euvd photo_gallery_by_ays_responsive_image_gallery no fix

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

Vendor (Wordfence) PRIMARY 4.9 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 4.9 MEDIUM

Administrator credentials required (PR:H); read-only database exfiltration means no integrity or availability impact; network-accessible admin panel justifies AV:N.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

EPSS Score
0.4%
Top 72% exploitable
Prevalence
Medium
WordPress gallery plugin with meaningful but non-dominant install base
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-44000 CRITICAL POC
9.8 Oct 20

Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2025-27007 CRITICAL POC
9.8 May 01

The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-4295 CRITICAL POC
9.8 Jun 05

The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy