Photo Gallery by Ays - Responsive Image Gallery <= 4.4.3 - Authenticated Blind SQL Injections

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2021-24462
CVSS 7.2 (High)
Publicly Published June 29, 2021
Last Updated January 31, 2023
Researcher To Quang Duong


The get_gallery_categories() and get_galleries() functions in the Photo Gallery by Ays – Responsive Image Gallery WordPress plugin before 4.4.4 did not use whitelist or validate the orderby parameter before using it in SQL statements passed to the get_results() DB calls, leading to SQL injection issues in the admin dashboard



1 affected software package

Software Type Plugin
Software Slug gallery-photo-gallery (view on
Patched? Yes
Remediation Update to version 4.4.4, or a newer patched version
Affected Version
  • < 4.4.4
Patched Version
  • 4.4.4

All the threat data shared in this database is powered by Wordfence Intelligence Enterprise.
Interested in integrating this data into your platform or network?
Contact us now to discuss API access to our Wordfence Intelligence Enterprise Data Feeds.

Inquire Now

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.