CVE-2021-24462 Photo Gallery by Ays - Responsive Image Gallery < 4.4.4 - Authenticated Blind SQL Injections

High 8.8 Published Updated

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.

Sources

Also known as GHSA-g2fm-f89j-pxh3.

Is CVE-2021-24462 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free