Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/incl
- https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/incl
- https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/incl
- https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/incl
- https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/incl
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3655818%40gallery-pho
- https://www.wordfence.com/threat-intel/vulnerabilities/id/7f45b7d0-6816-45dc-b37
FAQ
What is CVE-2026-76006?
CVE-2026-76006 is a vulnerability with a CVSS score of 4.9 (MEDIUM). 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 es...
How severe is CVE-2026-76006?
CVE-2026-76006 has been rated MEDIUM with a CVSS base score of 4.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-76006?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.