Piwigo
Piwigo: Authenticated RCE via File Upload in Logo Upload Feature
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 16.4.0
Fixed in 16.4.0
Mitigation
Upgrade Piwigo to 16.4.0 or later.
References
- Vendor advisory github.com/Piwigo/Piwigo/security/advisories/G…
- Patch github.com/Piwigo/Piwigo/commit/1e7f7262cb30e6…
- Patch github.com/Piwigo/Piwigo/commit/4a13ec9a8f4881…
1 more
- Release notes github.com/Piwigo/Piwigo/releases/tag/16.4.0
Timeline
Days relative to CVE publicationFirst public PoC 7.2 days after publication; not in CISA KEV. First PoC: LipeOzyy/CVE-2026-42322 (created 2 Oct 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| LipeOzyy/CVE-2026-42322 | 2 Oct 2026 +7.2 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.