# CVE-2026-9059: NextGEN Gallery - SQL Injection

- Severity: Critical 9.3 (CVSS:4.0, scored by tenable) `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA: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): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-05-20T07:41:28.135Z
- Modified: 2026-07-23T20:10:00.130Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: tenable

## Description

NextGEN Gallery version prior to 4.2.1 are vulnerable to authenticated SQL injection via the 'orderby' parameter on the REST API endpoints '/imagely/v1/galleries' and '/imagely/v1/albums'.



The root cause is an insufficient sanitization function ('_clean_column()') in the data mapper layer that uses a character blacklist instead of a whitelist approach. This allows an authenticated attacker with the 'NextGEN Gallery overview' capability (assigned to the Administrator role by default) to inject arbitrary SQL into the 'ORDER BY' clause.

(As written by CVE List.)

## Affected

- awesomemotive NextGEN Gallery: from O before 4.2.1

## References

- <https://www.tenable.com/security/research/tra-2026-42>

## Sources

- CVE List: [CVE-2026-9059](https://www.cve.org/CVERecord?id=CVE-2026-9059), CVE Terms of Use, modified 2026-05-20
- NVD: [CVE-2026-9059](https://nvd.nist.gov/vuln/detail/CVE-2026-9059), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-9059 · Whole record: https://cve.day/CVE-2026-9059.json · Rebuilt by cve.day 2026-11-25T22:59:22.030Z
