# CVE-2026-42323: Piwigo SQL injection in batch manager filter

Source: https://junglewise.ai/threats/cve-2026-42323-piwigo-is-a-full-featured-open-source-photo-gallery-application  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-25. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-42323 · Severity: high · CVSS 7.2 · Published 2026-09-25

Piwigo is a photo gallery application used to organize and display image collections online. Prior to version 16.4.0, an authenticated administrator can inject SQL code through the batch manager's filter parameters, potentially accessing, modifying, or deleting photos and metadata stored in the application's database. This allows a malicious admin to extract sensitive data or disrupt the gallery's operation.

Technologies: [Piwigo](https://junglewise.ai/threats/technologies/piwigo). Vendors: [Piwigo](https://junglewise.ai/threats/vendors/piwigo).

## Quick answers

**Is CVE-2026-42323 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-42323 being exploited in the wild.

**How severe is CVE-2026-42323?** High severity, with a CVSS score of 7.2, published 25 September 2026.

**Which products and versions are affected?** Piwigo before 16.4.0.

**Is there a fix for CVE-2026-42323?** A patch was published on 2026-09-25: Fixed in version 16.4.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-42323 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-42323?** Check whether you run Piwigo at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The admin/batch_manager.php script accepts filter parameters (width, height, ratio, filesize) from URL GET requests without numeric validation and concatenates them directly into SQL queries, unlike the validated POST filter path. An authenticated administrator can craft malicious filter values to execute time-based SQL injection attacks. The vulnerability was fixed in version 16.4.0 by adding input validation for dimension and filesize parameters.

## Affected products

- Piwigo Piwigo before 16.4.0

## Timeline

- 2026-09-25: disclosed
- 2026-09-25: patched: Fixed in version 16.4.0

## References

- [https://github.com/Piwigo/Piwigo/commit/c7e30da5c1775b531ce9a30aac04134cd714b472](https://github.com/Piwigo/Piwigo/commit/c7e30da5c1775b531ce9a30aac04134cd714b472)
- [https://github.com/Piwigo/Piwigo/commit/e4f0989d350d66207066ea61f8ee8c137164fb2f](https://github.com/Piwigo/Piwigo/commit/e4f0989d350d66207066ea61f8ee8c137164fb2f)

## Related threats

- [Piwigo SQL injection in image rating search](https://junglewise.ai/threats/cve-2026-62262-piwigo-is-a-full-featured-open-source-photo-gallery-application)
- [Piwigo SQL injection in upgrade authentication](https://junglewise.ai/threats/cve-2026-44642-piwigo-is-a-full-featured-open-source-photo-gallery-application)
- [Piwigo SQL injection via unvalidated image_order parameter](https://junglewise.ai/threats/cve-2026-42324-piwigo-is-a-full-featured-open-source-photo-gallery-application)
- [Piwigo arbitrary code execution via logo upload extension validation bypass](https://junglewise.ai/threats/cve-2026-42322-piwigo-is-a-full-featured-open-source-photo-gallery-application)
- [Piwigo arbitrary file read and RCE in image upload handling](https://junglewise.ai/threats/cve-2026-85750-piwigo-before-v16-4-0-is-vulnerable-to-arbitrary-file-read-and)
