CVE-2026-9059: NextGEN Gallery - SQL Injection

Published May 20, 2026
·
Updated

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 ('cleancolumn()') 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.

Affected Software

1 affected component
Imagely NextGEN Gallery<4.2.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade NextGEN Gallery to a version that resolves this vulnerability.

    Fixed in 4.2.1
  2. Compensating control

    Restrict the 'NextGEN Gallery overview' capability (assigned to the Administrator role by default) so only trusted users can access the REST API endpoints that expose the vulnerable 'orderby' parameter ('/imagely/v1/galleries' and '/imagely/v1/albums').

Event History

May 20, 2026
CVE Published
via MITRE·07:41 AM
Data Sourced
via MITRE·07:41 AM
DescriptionWeakness
Data Sourced
via NVD·09:16 AM
DescriptionSeverityWeakness
Jun 29, 58424
Event
via FIRST·08:55 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-9059?

CVE-2026-9059 has been classified as a high severity vulnerability due to its potential for authenticated SQL injection.

2

How do I fix CVE-2026-9059?

To remediate CVE-2026-9059, upgrade NextGEN Gallery to version 4.2.1 or higher to ensure proper sanitization of the 'orderby' parameter.

3

What software is affected by CVE-2026-9059?

CVE-2026-9059 affects Imagely NextGEN Gallery versions prior to 4.2.1.

4

What are the vulnerable endpoints in CVE-2026-9059?

The vulnerable endpoints in CVE-2026-9059 are the REST API endpoints '/imagely/v1/galleries' and '/imagely/v1/albums'.

5

What is the root cause of CVE-2026-9059?

The root cause of CVE-2026-9059 is an insufficient sanitization function called '_clean_column()'.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203