SQL Injection Vulnerability in Photo Gallery Plugin for WordPress
CVE-2026-76006

4.9MEDIUM

What is CVE-2026-76006?

The Photo Gallery by Ays plugin for WordPress is susceptible to SQL Injection due to improper parameter handling through the 's' parameter. This vulnerability affects all versions up to and including 6.8.2. Authenticated users with administrator-level access can exploit this weakness to inject malicious SQL queries into the existing database queries. The exploitation occurs via two key execution paths β€” leveraging $wpdb->get_var() in record_count() and $wpdb->get_results() in the prepare_items()/get_image_categories() methods. These paths allow attackers to extract sensitive information using both blind and UNION-based SQL exfiltration techniques.

Affected Version(s)

Photo Gallery by Ays – Responsive Image Gallery 0 <= 6.8.2

References

CVSS V3.1

Score:
4.9
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
High
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Wordfence PRISM
.