PatchSiren cyber security CVE debrief
CVE-2026-42322 Piwigo CVE debrief
CVE-2026-42322 is a critical vulnerability in Piwigo, a full-featured open-source photo gallery application for the web. 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. The vulnerability is fixed in version 16.4.0.
- Vendor
- Piwigo
- Product
- Unknown
- CVSS
- CRITICAL 9.1
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-09-25
- Original CVE updated
- 2026-09-25
- Advisory published
- 2026-09-25
- Advisory updated
- 2026-09-25
Who should care
System administrators and security teams responsible for Piwigo installations should assess exposure and apply the patch to prevent exploitation. This includes reviewing Piwigo versions, ensuring timely patching, and monitoring for suspicious activity. Affected operators must prioritize patching to prevent arbitrary command execution, data disclosure, modification, persistence, and service disruption.
Why it matters
CVE-2026-42322 is a critical vulnerability in Piwigo that allows authenticated administrators to upload malicious files, leading to arbitrary command execution, data disclosure, modification, persistence, and service disruption. System administrators and security teams should assess exposure and apply the patch to prevent exploitation.
- Arbitrary command execution requires immediate attention to prevent potential system compromise
- Data disclosure and modification can lead to sensitive information exposure and data tampering
- Persistence and service disruption can result in prolonged system downtime and reputational damage
Technical summary
The vulnerability exists in the admin/themes_standard_pages.php file of Piwigo, where the uploaded logo content is validated by MIME type but the attacker-controlled extension from std_pgs_logo is reused when constructing the stored filename. This allows an authenticated administrator to upload image content with a server-executable final extension, leading to arbitrary command execution, data disclosure, modification, persistence, and service disruption.
Defensive priority
High
Recommended defensive actions
- Assess exposure by identifying Piwigo installations and verifying if they are running a version prior to 16.4.0
- Apply the patch by upgrading to Piwigo version 16.4.0 or later
- Monitor for suspicious activity, such as unexpected changes to the logo directory or unusual requests to the web server
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record and NVD vulnerability detail provide information on the vulnerability, its impact, and the fixed version. The vulnerability exists in Piwigo versions prior to 16.4.0. 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. Evidence is limited to public CVE and NVD details; defenders should verify Piwigo installations and apply the patch.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-42322 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-42322
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-42322 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-42322
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/Piwigo/Piwigo/commit/1e7f7262cb30e6916779f93e66d5d6579ec75a11
-
Source reference
Unverified legacy reference
URL: https://github.com/Piwigo/Piwigo/commit/4a13ec9a8f4881ae1f23bdfd24d7b90cd0802cdc
-
Source reference
Unverified legacy reference
URL: https://github.com/Piwigo/Piwigo/releases/tag/16.4.0
-
Source reference
Unverified legacy reference
URL: https://github.com/Piwigo/Piwigo/security/advisories/GHSA-7w97-5g4p-xqvv
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.