Description
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.
Published: 2026-09-25
Score: 9.1 Critical
EPSS: 1.3% Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Piwigo’s logo upload routine checks only the MIME type of the uploaded file, but then copies the original extension into the stored filename. An authenticated administrator can therefore upload image content that carries a server‑executable extension, causing the file to be placed in a web‑accessible directory and executed when requested. This achieves arbitrary command execution, allowing the attacker to read, modify, or delete data, establish persistence, or disrupt service. The flaw is an instance of insecure file upload (CWE-434).

Affected Systems

All installations of Piwigo older than version 16.4.0 are affected, regardless of deployment size. The vulnerability exists wherever the admin/themes_standard_pages.php script handles logo uploads and the administrator role has permission to upload logos. Inferred that any site hosting a public instance with administrative credentials is at risk if not patched. No additional environment or network constraints are required.

Risk and Exploitability

With a CVSS score of 9.1 the flaw is considered critical. The required conditions are privileged access (an authenticated administrator) and the ability to upload a logo file. EPSS is not available, so the probability of exploitation cannot be quantified from public data. The vulnerability is not listed in CISA’s KEV catalog, but the combination of privileged access and a web‑executable file means the attacker can run arbitrary code. Immediate remediation is essential to prevent exploitation.

Generated by OpenCVE AI on September 25, 2026 at 19:52 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Piwigo 16.4.0 or later, which removes the insecure file‑upload handling.
  • If an upgrade cannot be applied immediately, disable the logo upload feature entirely or restrict it to users who have special permissions that do not allow arbitrary file creation.
  • Configure the web server so that the directory containing the logos does not allow execution of files (e.g., disable CGI or PHP execution in that directory).
  • Monitor the logo directory and web server logs for any execution attempts or unexpected executable files, and remove them promptly.

Generated by OpenCVE AI on September 25, 2026 at 19:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 28 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sat, 26 Sep 2026 12:00:00 +0000

Type Values Removed Values Added
First Time appeared Piwigo
Piwigo piwigo
Vendors & Products Piwigo
Piwigo piwigo

Fri, 25 Sep 2026 16:00:00 +0000

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/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.
Title Piwigo: Authenticated RCE via File Upload in Logo Upload Feature
Weaknesses CWE-434
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-28T14:34:50.653Z

Reserved: 2026-04-26T12:37:18.170Z

Link: CVE-2026-42322

cve-icon Vulnrichment

Updated: 2026-09-28T14:34:14.872Z

cve-icon NVD

Status : Deferred

Published: 2026-09-25T16:17:25.420

Modified: 2026-09-28T15:17:17.113

Link: CVE-2026-42322

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-26T11:45:09Z

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type