CVE-2026-76006
Received Received - Intake

SQL Injection in Photo Gallery by Ays WordPress Plugin

Vulnerability report for CVE-2026-76006, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-01

Last updated on: 2026-09-01

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-01
Last Modified
2026-09-01
Generated
2026-09-01
AI Q&A
2026-09-01
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
ays photo_gallery to 6.8.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a SQL Injection vulnerability in the Photo Gallery by Ays WordPress plugin up to version 6.8.2. It allows authenticated attackers with admin access or higher to inject malicious SQL queries via the 's' parameter. The flaw exists due to improper input escaping and lack of query preparation, enabling attackers to extract sensitive database information using techniques like blind or UNION-based SQL attacks.

Detection Guidance

This vulnerability can be detected by checking for suspicious SQL queries or database access patterns in WordPress logs. Look for repeated queries containing the 's' parameter with unusual values. Use WordPress debugging tools or plugins to monitor database interactions. No specific commands are provided in the context.

Impact Analysis

If you use this plugin, an attacker with admin access could steal sensitive data from your WordPress database, such as user credentials, personal information, or other confidential data. They could also manipulate or delete database content, potentially disrupting your website's functionality.

Compliance Impact

This vulnerability could lead to unauthorized access to personal data, violating GDPR and HIPAA requirements for data protection. Organizations may face legal penalties, reputational damage, and loss of compliance certifications if such breaches occur due to unpatched vulnerabilities.

Mitigation Strategies

Immediately update the Photo Gallery by Ays plugin to the latest version beyond 6.8.2. If an update is unavailable, disable or remove the plugin. Restrict database access for WordPress users to minimize exposure. Monitor database queries for unusual activity.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-76006. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart