Description
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.
Published: 2026-09-01
Score: 4.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: SQL Injection (Administrator+ access required)
Action: Patch Immediately
AI Analysis

Impact

The plugin "Photo Gallery by Ays – Responsive Image Gallery" for WordPress contains a generic SQL injection flaw in the 's' parameter used by multiple backend functions. This flaw enables an attacker who has at least administrator privileges to inject and execute arbitrary SQL statements. The injected queries can be blind or UNION‑based, allowing extraction of confidential data from the database. Because the vulnerability requires legitimate WordPress credentials, the attack surface is limited to authenticated users with elevated roles; however, the impact includes potential theft of sensitive information and integrity compromise of site content.

Affected Systems

Any WordPress installation running the Photo Gallery by Ays – Responsive Image Gallery plugin with a version number 6.8.2 or earlier is affected. The flaw exists across two execution paths in the plugin’s code that handle catalog rendering and category listing, meaning all installations with these versions are vulnerable if an attacker obtains administrator credentials.

Risk and Exploitability

The CVSS base score of 4.9 indicates a moderate risk, and absence of a KEV listing suggests there are no confirmed exploits in the wild at the time of analysis. The EPSS score is not available, but because the flaw requires authenticated access, an attacker would first need to compromise the login credentials of an administrator. Once authenticated, the plugin’s lack of proper input sanitization allows the attacker to append malicious SQL statements and exfiltrate data. The absence of a publicly disclosed exploit does not guarantee the vulnerability is safe, as the attack path is straightforward for users with admin privileges.

Generated by OpenCVE AI on September 1, 2026 at 05:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Photo Gallery by Ays plugin to a version newer than 6.8.2
  • Restrict administrator‑level access to the minimum required functions to limit potential damage
  • Implement or configure a web application firewall that blocks known SQL injection patterns targeting the 's' parameter

Generated by OpenCVE AI on September 1, 2026 at 05:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 01 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Ays-pro
Ays-pro photo Gallery By Ays – Responsive Image Gallery
Wordpress
Wordpress wordpress
Vendors & Products Ays-pro
Ays-pro photo Gallery By Ays – Responsive Image Gallery
Wordpress
Wordpress wordpress

Tue, 01 Sep 2026 04:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Photo Gallery by Ays <= 6.8.2 - Authenticated (Administrator+) SQL Injection via 's' Parameter
Weaknesses CWE-89
References
Metrics cvssV3_1

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


Subscriptions

Ays-pro Photo Gallery By Ays – Responsive Image Gallery
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-09-02T17:53:44.727Z

Reserved: 2026-08-18T18:52:42.738Z

Link: CVE-2026-76006

cve-icon Vulnrichment

Updated: 2026-09-02T17:53:40.075Z

cve-icon NVD

Status : Deferred

Published: 2026-09-01T05:17:10.157

Modified: 2026-09-02T18:21:22.460

Link: CVE-2026-76006

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T14:15:38Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')