CVE-2026-9059

Severity CVSS v4.0:
CRITICAL
Type:
CWE-89 SQL Injection
Publication date:
20/05/2026
Last modified:
20/05/2026

Description

NextGEN Gallery version prior to 4.2.1 are vulnerable to authenticated SQL injection via the &amp;#39;orderby&amp;#39; parameter on the REST API endpoints &amp;#39;/imagely/v1/galleries&amp;#39; and &amp;#39;/imagely/v1/albums&amp;#39;.<br /> <br /> <br /> <br /> The root cause is an insufficient sanitization function (&amp;#39;_clean_column()&amp;#39;) in the data mapper layer that uses a character blacklist instead of a whitelist approach. This allows an authenticated attacker with the &amp;#39;NextGEN Gallery overview&amp;#39; capability (assigned to the Administrator role by default) to inject arbitrary SQL into the &amp;#39;ORDER BY&amp;#39; clause.

References to Advisories, Solutions, and Tools