🔐 CVE Alert

CVE-2026-76006

MEDIUM 4.9

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

CVSS Score
4.9
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-89
Vendor ays-pro
Product photo gallery by ays – responsive image gallery
Published Sep 1, 2026
Stay Ahead of the Next One

Get instant alerts for ays-pro photo gallery by ays – responsive image gallery

Be the first to know when new medium vulnerabilities affecting ays-pro photo gallery by ays – responsive image gallery are published — delivered to Slack, Telegram or Discord.

Get Free Alerts → Free · No credit card · 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability

Affected Versions

ays-pro / Photo Gallery by Ays – Responsive Image Gallery
0 ≤ 6.8.2

References

NVD ↗ CVE.org ↗ EPSS Data ↗
wordfence.com: https://www.wordfence.com/threat-intel/vulnerabilities/id/7f45b7d0-6816-45dc-b373-b63a42bbb9f1?source=cve plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/includes/lists/class-gallery-photo-gallery-categories-list-table.php#L226 plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/includes/lists/class-gallery-photo-gallery-categories-list-table.php#L234 plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/includes/lists/class-gallery-photo-gallery-categories-list-table.php#L224 plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/includes/lists/class-gallery-photo-gallery-categories-list-table.php#L428 plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/includes/lists/class-gallery-photo-gallery-categories-list-table.php#L63 plugins.trac.wordpress.org: https://plugins.trac.wordpress.org/changeset?reponame=&old=3655818%40gallery-photo-gallery&new=3655818%40gallery-photo-gallery

Credits

Wordfence PRISM