Photo Gallery by Ays <= 6.8.2 - Authenticated (Administrator+) SQL Injection via 's' Parameter

4.9
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2026-76006
CVSS 4.9 (Medium)
Publicly Published August 31, 2026
Last Updated September 1, 2026
Researcher Wordfence PRISM - Wordfence

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.

Learn more about SQL Injection vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Photo Gallery by Ays – Responsive Image Gallery

Software Type Plugin
Software Slug gallery-photo-gallery (view on wordpress.org)
Patched? Yes
Remediation Update to version 6.8.3, or a newer patched version
Affected Version
  • <= 6.8.2
Patched Version
  • 6.8.3

Recent vulnerabilities in Photo Gallery by Ays – Responsive Image Gallery

# Title CVE ID CVSS Researchers Date
1 Photo Gallery by Ays <= 6.4.8 - Cross-Site Request Forgery to Bulk Actions CVE-2025-13685 4.3 Deadbee December 1, 2025
2 Photo Gallery by Ays <= 6.3.8 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2025-57947 6.4 Abu Hurayra (HurayraIIT) September 22, 2025
3 Photo Gallery by Ays <= 5.7.0 - Authenticated (Administrator+) HTML Injection CVE-2024-37442 4.4 Ibnu Ubaeydillah June 28, 2024
4 Photo Gallery by Ays <= 5.5.2 - Reflected Cross-Site Scripting CVE-2024-29919 6.1 Majed Refaea March 25, 2024
5 Photo Gallery by Ays <= 5.2.6 - Cross-Site Request Forgery CVE-2023-39917 4.3 Skalucy August 7, 2023
6 Photo Gallery by Ays <= 5.1.6 - Reflected Cross-Site Scripting CVE-2023-2568 6.1 Erwan LR May 16, 2023
7 Photo Gallery by Ays <= 5.1.3 - Reflected Cross-Site Scripting via ays_gpg_settings_tab CVE-2023-32107 6.1 Le Ngoc Anh May 3, 2023
8 Photo Gallery by Ays - Responsive Image Gallery <= 4.4.3 - Authenticated Blind SQL Injections CVE-2021-24462 7.2 To Quang Duong June 29, 2021
9 Photo Gallery by Ays – Responsive Image Gallery <= 4.4.3 - Reflected Cross-Site Scripting 6.1 WPScanTeam June 29, 2021
10 Photo Gallery by Ays – Responsive Image Gallery < 1.0.1 - SQL Injection CVE-2016-10921 9.8 July 11, 2016

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation