CVE-2026-42323

Piwigo: SQL Injection in Batch Manager

Published Sep 25, 2026 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
Description
Piwigo is a full featured open source photo gallery application for the web. Prior to 16.4.0, admin/batch_manager.php accepts administrator-controlled dimension width, height, and ratio values and filesize values from the Batch Manager filter URL without numeric validation. The URL filter parser stores those values in the bulk_manager_filter session state, and later query construction concatenates them into SQL predicates, unlike the validated POST filter path. An authenticated administrator can use crafted filter values to execute time-based or other SQL expressions and potentially disclose, modify, or disrupt database data. This issue is fixed in version 16.4.0.

Analysis

AI-generated

Technical impact

admin/batch_manager.php processes administrator‑controlled width, height, ratio and filesize parameters from the query string without numeric validation. Those values are stored in the bulk_manager_filter session and later concatenated into SQL predicates, unlike the validated POST filter path. This flaw allows an authenticated administrator to craft filter values that contain arbitrary SQL expressions, leading to time‑based or other SQL injections that can disclose, modify, or disrupt database data. The weakness is classified as CWE‑89.

Affected Systems

The vulnerability affects the Piwigo photo gallery application, specifically all versions released before 16.4.0. Authorized administrators using the Batch Manager feature are susceptible to exploitation.

Risk and Exploitability

The CVSS score of 7.2 classifies this as High severity. EPSS is not available and the flaw is not listed in the CISA KEV catalog. The attack requires authenticated administrative access via the web interface; therefore, the exploitation likelihood depends on the protection of administrator credentials and the exposure of the Batch Manager endpoint. While no public exploits have been reported, the lack of numeric validation gives attackers a reliable path to inject malicious SQL once they reach the target system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Piwigo to version 16.4.0 or later, which contains the official fix for the input validation failure.
  • If an upgrade cannot be performed immediately, restrict or disable access to the admin/batch_manager.php page so only trusted administrators can reach it, or remove the file from the web‑accessible directory.
  • Review any custom modifications that pass width, height, ratio, or filesize values to SQL statements and replace them with strict numeric validation or use of prepared statements to eliminate injection vectors.

Generated by OpenCVE AI on September 25, 2026 at 18:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Piwigo
Piwigo piwigo
Vendors & Products Piwigo
Piwigo piwigo
Type Values Removed Values Added
Description Piwigo is a full featured open source photo gallery application for the web. Prior to 16.4.0, admin/batch_manager.php accepts administrator-controlled dimension width, height, and ratio values and filesize values from the Batch Manager filter URL without numeric validation. The URL filter parser stores those values in the bulk_manager_filter session state, and later query construction concatenates them into SQL predicates, unlike the validated POST filter path. An authenticated administrator can use crafted filter values to execute time-based or other SQL expressions and potentially disclose, modify, or disrupt database data. This issue is fixed in version 16.4.0.
Title Piwigo: SQL Injection in Batch Manager
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 28, 2026, 2:29 PM
Reserved
Apr 26, 2026, 12:37 PM
Status
Deferred
Published
Sep 25, 2026, 4:17 PM
Modified
Sep 28, 2026, 3:17 PM