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

7.2
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 22, 2024
Researcher To Quang Duong

Description

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

Learn more about SQL Injection vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Photo Gallery by Ays – Responsive Image Gallery

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

Recent vulnerabilities in Photo Gallery by Ays – Responsive Image Gallery

# Title CVE ID CVSS Researchers Date
1 Photo Gallery by Ays <= 6.8.2 - Authenticated (Administrator+) SQL Injection via 's' Parameter CVE-2026-76006 4.9 Wordfence PRISM August 31, 2026
2 Photo Gallery by Ays <= 6.4.8 - Cross-Site Request Forgery to Bulk Actions CVE-2025-13685 4.3 Deadbee December 1, 2025
3 Photo Gallery by Ays <= 6.3.8 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2025-57947 6.4 Abu Hurayra (HurayraIIT) September 22, 2025
4 Photo Gallery by Ays <= 5.7.0 - Authenticated (Administrator+) HTML Injection CVE-2024-37442 4.4 Ibnu Ubaeydillah June 28, 2024
5 Photo Gallery by Ays <= 5.5.2 - Reflected Cross-Site Scripting CVE-2024-29919 6.1 Majed Refaea March 25, 2024
6 Photo Gallery by Ays <= 5.2.6 - Cross-Site Request Forgery CVE-2023-39917 4.3 Skalucy August 7, 2023
7 Photo Gallery by Ays <= 5.1.6 - Reflected Cross-Site Scripting CVE-2023-2568 6.1 Erwan LR May 16, 2023
8 Photo Gallery by Ays <= 5.1.3 - Reflected Cross-Site Scripting via ays_gpg_settings_tab CVE-2023-32107 6.1 Le Ngoc Anh May 3, 2023
9 Photo Gallery by Ays – Responsive Image Gallery <= 4.4.3 - Reflected Cross-Site Scripting 6.1 WPScanTeam June 29, 2021
10 Photo Gallery by Ays – Responsive Image Gallery < 1.0.1 - SQL Injection CVE-2016-10921 9.8 July 11, 2016

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

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.

Documentation