CVE-2026-42322Piwigo
Remote Code Execution via Insufficient Extension Validation in Piwigo
Critical 9.1
Follow: this CVE · Piwigo · Piwigo We alert you by email or Slack (account required).
- Priority
- 55
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- Yes
- Published
- Sep 25, 2026
- Updated
- Sep 28, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-434
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
What happens
Piwigo prior to 16.4.0 validates uploaded logo MIME type but reuses the attacker-controlled extension when storing the file. An authenticated administrator can upload server-executable content, enabling arbitrary code execution, data disclosure, and service disruption.
Show the original NVD text
Piwigo is a full featured open source photo gallery application for the web. Prior to 16.4.0, admin/themes_standard_pages.php validates uploaded logo content by MIME type but reuses the attacker-controlled extension from std_pgs_logo when constructing the stored filename. An authenticated administrator can upload image content with a server-executable final extension, causing the file to be placed in the web-accessible logo directory and executed when requested if the web server handles that extension. This can permit arbitrary command execution, data disclosure, modification, persistence, and service disruption. This vulnerability is fixed in 16.4.0.
What to do
Patch available · fixed versions: 16.4.0
Update Piwigo to version 16.4.0 or later to fix the file extension validation.
- Apply the vendor's security update for Piwigo.
Affected products
- Piwigo · Piwigo
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.