CVE-2021-24462 Photo Gallery by Ays - Responsive Image Gallery < 4.4.4 - Authenticated Blind SQL Injections
Authenticated attackers can exploit SQL injection in the admin dashboard to read or modify database contents via unvalidated orderby parameters.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-24462?
CVE-2021-24462 is a high-severity SQL injection vulnerability in Photo Gallery by Ays – Responsive Image Gallery, published on 2 Aug 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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
Weakness: CWE-89
Which versions are affected by CVE-2021-24462?
It affects 1 product.
Products include Ays-Pro Photo Gallery.
How do I fix CVE-2021-24462?
No fix has been published for CVE-2021-24462 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2021-24462 being exploited?
There is no known exploitation of CVE-2021-24462 in the wild and no public exploit code.
Other vulnerabilities in Photo Gallery by Ays – Responsive Image Gallery
- CVE-2016-10921 SQL injection in n/a
- CVE-2023-32107 WordPress Photo Gallery by Ays Plugin <= 5.1.3 is vulnerable to Cross Site Scripting (XSS)
- CVE-2023-2568 Photo Gallery by Ays < 5.1.7 - Reflected XSS
- CVE-2023-39917 WordPress Photo Gallery by Ays Plugin <= 5.2.6 is vulnerable to Cross Site Request Forgery (CSRF)
- CVE-2024-37442 WordPress Photo Gallery by Ays – Responsive Image Gallery plugin < 5.7.1 - HTML Injection vulnerability
Sources
Also known as GHSA-g2fm-f89j-pxh3.