Photo Gallery by Ays permits Administrator-level SQL injection
Photo Gallery by Ays through 6.8.2 places the attacker-controlled s parameter into insufficiently prepared queries. The value reaches $wpdb->get_var() through record_count() and $wpdb->get_results() through prepare_items() and get_image_categories(), enabling blind or UNION-based database extraction by an Administrator.
- Component
- Photo Gallery by Ays – Responsive Image Gallery
- Plugin slug
gallery-photo-gallery- Affected
- <= 6.8.2
- Safe version
- See mitigation notes
- Published
- Sep 01, 2026
This CVE was published Sep 01, 2026 and is one of 9 known issues for this plugin.
Update, patch or deactivate.
Update to a confirmed release newer than 6.8.2 when available. Until then, restrict gallery administration when warranted, review administrator and database activity, and rotate exposed secrets if exploitation is suspected.
No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical 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.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Primary and upstream sources
- NVD record for CVE-2026-76006
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- Wordfence advisory wordfence.com