Photo Gallery by Ays <= 6.8.2 - Authenticated (Administrator+) SQL Injection via 's' Parameter
Strategic Overview
- Status
- Patched in 6.8.3
- Affected Plugin
- Photo Gallery by Ays – Responsive Image Gallery
- Affected Version
<= 6.8.2- CVSS
- 4.9Medium
- Weakness type
- CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- CVE
CVE-2026-76006
At a glance
CVE-2026-76006 is a medium-severity Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in the Photo Gallery by Ays WordPress plugin, affecting versions <= 6.8.2. It carries a CVSS score of 4.9 (reachable over the network; low attack complexity; high confidentiality impact). Exploitation requires an authenticated account at Administrator level or above. The issue is fixed in version 6.8.3; sites on affected versions should update now. Disclosed August 2026, reported by Wordfence PRISM.
Vulnerability Overview
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.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user. A successful exploit has high impact on confidentiality.
CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Photo Gallery by Ays <= 6.8.2 carries this weakness at get_var(), and reaching it takes an account at Administrator level or above. SQL injection happens when request data is concatenated into a query instead of being bound as a parameter, letting an attacker change the structure of the statement rather than just its values.
A working injection can read any table the database user can see, which on a WordPress install means user records, password hashes and session or API secrets stored in options. For Photo Gallery by Ays the fix is 6.8.3: builds <= 6.8.2 are affected, anything from 6.8.3 onward is not.
Remediation
Update to version 6.8.3, or a newer patched version
How does WordSec protect against this?
An attacker needs Administrator access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Photo Gallery by Ays 6.8.3 closes this, and updating the plugin is the step that ends it.
- Firewall
- Alerts
External References
Related records
Same weakness class
Other vulnerabilities in Photo Gallery by Ays – Responsive Image Gallery
- 6.4CVE-2025-57947: Photo Gallery by Ays <= 6.3.8 Stored XSS
CVE-2025-57947 - 6.1CVE-2024-29919: Photo Gallery by Ays <= 5.5.2 Reflected XSS
CVE-2024-29919 - 6.1CVE-2023-2568: Photo Gallery by Ays <= 5.1.6 Reflected XSS
CVE-2023-2568 - 6.1CVE-2023-32107: Photo Gallery by Ays <= 5.1.3 Reflected XSS
CVE-2023-32107 - 6.1Photo Gallery by Ays – Responsive Image Gallery <= 4.4.3 Reflected XSS
- 4.4CVE-2024-37442: Photo Gallery by Ays <= 5.7.0 HTML Injection
CVE-2024-37442 - 4.3CVE-2025-13685: Photo Gallery by Ays <= 6.4.8 CSRF to Bulk Actions
CVE-2025-13685 - 4.3CVE-2023-39917: Photo Gallery by Ays <= 5.2.6 CSRF
CVE-2023-39917
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C