CVE-2026-76006
MediumCVSS 4.9Exploitation Probability (EPSS)
Low risk28th percentile - higher than 28% of all known CVEs
Summary
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.
Risk Assessment
An attacker with administrator privileges can extract sensitive data from the database, potentially leading to data confidentiality breaches.
Recommendation
Update the Photo Gallery by Ays plugin to the latest version that includes a fix, or apply temporary measures such as restricting access to administrative functions.
Other vulnerabilities in Photo Gallery by Ays
See all- CVE-2025-13685Medium
The Photo Gallery by Ays plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to and including 6.4.8. Missing nonce verification in the process_bulk_action() function allows unauthenticated attackers to perform bulk operations (delete, publish, or unpublish galleries) via a forged request if they can trick an administrator into clicking a link.
- CVE-2025-57947Medium
The Photo Gallery by Ays plugin (versions up to 6.3.8) contains a DOM-Based Cross-Site Scripting (XSS) vulnerability due to improper neutralization of input during web page generation.
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

