{"id":"CVE-2026-9059","aliases":["CVE-2026-9059"],"related":[],"kind":"vulnerability","state":"published","title":"NextGEN Gallery - SQL Injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Versiones de NextGEN Gallery anteriores a la 4.2.1 son vulnerables a inyección SQL autenticada a través del parámetro 'orderby' en los endpoints de la API REST '/imagely/v1/galleries' y '/imagely/v1/albums'.\n\nLa causa raíz es una función de saneamiento insuficiente ('_clean_column()') en la capa del mapeador de datos que utiliza una lista negra de caracteres en lugar de un enfoque de lista blanca. Esto permite a un atacante autenticado con la capacidad 'NextGEN Gallery overview' (asignada al rol de Administrador por defecto) inyectar SQL arbitrario en la cláusula 'ORDER BY'.","source":"nvd"}],"published":"2026-05-20T07:41:28.135Z","modified":"2026-07-23T20:10:00.130Z","severity":{"scorer":"tenable","scheme":"CVSS: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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"tenable","scheme":"CVSS: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","score":9.3,"rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"custom","introduced":"O","fixed":"4.2.1","status":"affected"}],"vendor":"awesomemotive","product":"NextGEN Gallery","source":"cvelist"}],"references":[{"url":"https://www.tenable.com/security/research/tra-2026-42","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"tenable","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-20T14:30:36.432Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-9059","url":"https://www.cve.org/CVERecord?id=CVE-2026-9059","licence":"CVE Terms of Use","modified":"2026-05-20T14:46:16.064Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-9059","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9059","licence":"Public domain","modified":"2026-07-23T20:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:22.030Z","epss":{"score":0.00295,"percentile":0.23784,"date":"2026-12-01T12:00:22.000Z"}}