{"id":"CVE-2026-42324","published":"2026-09-25T15:48:55Z","modified":"2026-09-25T16:15:01Z","title":"Piwigo: Second-Order SQL Injection","vendor":"Piwigo","product":"Piwigo","tier":"tail","description":{"text":"Piwigo is a full featured open source photo gallery application for the web. Prior to 16.4.0, admin/element_set_ranks.php stores administrator-controlled image_order[] values without enforcing the existing sort-field whitelist. The stored album image_order expression is later concatenated into ORDER BY clauses by admin/batch_manager_global.php, admin/batch_manager_unit.php, include/section_init.inc.php, and include/ws_functions/pwg.categories.php. When at least one album contains at least one photo, an authenticated administrator can store a crafted expression and trigger it in a later album or Batch Manager query to disclose, modify, or disrupt database data. This issue is fixed in version 16.4.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00916,"percentile":0.61027,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/Piwigo/Piwigo/security/advisories/GHSA-jhp4-7f82-8f6q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Piwigo/Piwigo/commit/ba1f803f8cefd3602ccb9c6f0155cd529510288a","tags":["x_refsource_MISC"]},{"url":"https://github.com/Piwigo/Piwigo/commit/ef9e65386d76f9c85f1e23a45dd7af14a5b73a47","tags":["x_refsource_MISC"]},{"url":"https://github.com/Piwigo/Piwigo/releases/tag/16.4.0","tags":["x_refsource_MISC"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":12.21},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"piwigo","affectedVersions":[{"vendor":"Piwigo","product":"Piwigo","versions":["< 16.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-09-25T16:14:12.579220Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-87138","exploited":false,"provenance":"source"}}