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

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.36%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-02T10:32:08.000Z
- Modified: 2026-06-17T03:40:04.433Z
- Weaknesses: CWE-89
- Assigned by: WPScan

## 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

(As written by CVE List.)

## Affected

- Ays Pro Photo Gallery by Ays – Responsive Image Gallery: from 4.4.4 before 4.4.4
- ays-pro photo_gallery: before 4.4.4

## Every score

- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://wpscan.com/vulnerability/e24dac6d-de48-42c1-bdde-4a45fb331376> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24462](https://www.cve.org/CVERecord?id=CVE-2021-24462), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24462](https://nvd.nist.gov/vuln/detail/CVE-2021-24462), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24462 · Whole record: https://cve.day/CVE-2021-24462.json · Rebuilt by cve.day 2026-11-25T22:58:02.912Z
