CVE-2026-42324 Details
Description
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.
A second-order SQL injection vulnerability has been identified in Piwigo versions prior to 16.4.0. The issue arises in the album sort order management within the 'admin/element_set_ranks.php' file. User-supplied input is stored without proper validation, allowing an authenticated administrator to inject malicious SQL that is later executed, potentially leading to unauthorized data access or manipulation. The vulnerability is exploited by injecting SQL through the 'image_order' parameter, which is then executed as part of SQL queries related to album management.
The vulnerability has been fixed in Piwigo version 16.4.0. Users are advised to update to this version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 25, 2026CISA-ADP
Assessed Sep 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Piwigo/Piwigo/security/advisories/GHSA-jhp4-7f82-8f6q | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/Piwigo/Piwigo/commit/ba1f803f8cefd3602ccb9c6f0155cd529510288a | [email protected] | Source CodeVendor |
| https://github.com/Piwigo/Piwigo/commit/ef9e65386d76f9c85f1e23a45dd7af14a5b73a47 | [email protected] | Source CodeVendor |
| https://github.com/Piwigo/Piwigo/releases/tag/16.4.0 | [email protected] | Release NotesVendor |
| https://github.com/Piwigo/Piwigo/security/advisories/GHSA-jhp4-7f82-8f6q | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Piwigo | 16.2.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 25, 2026 | CVE Modified | CISA-ADP |
| Sep 25, 2026 | New CVE Received | [email protected] |
Volerion