{"id":"CVE-2026-9059","published":"2026-05-20T07:41:28Z","modified":"2026-05-20T14:46:16Z","title":"NextGEN Gallery - SQL Injection","vendor":"awesomemotive","product":"NextGEN Gallery","tier":"tail","description":{"text":"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'.\n\n\n\nThe 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00295,"percentile":0.22629,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://www.tenable.com/security/research/tra-2026-42","tags":[]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":4.53},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"awesomemotive","affectedVersions":[{"vendor":"awesomemotive","product":"NextGEN Gallery","versions":[">= O, < 4.2.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-20T14:30:36.432608Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-31073","exploited":false,"provenance":"source"}}