CVE-2026-42322

Piwigo: Authenticated RCE via File Upload in Logo Upload Feature

Published Sep 25, 2026 CVSS 3.1 · 9.1 Critical EPSS 1.3% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Piwigo
Piwigo piwigo
Vendors & Products Piwigo
Piwigo piwigo
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'}

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 28, 2026, 2:34 PM
Reserved
Apr 26, 2026, 12:37 PM
Status
Deferred
Published
Sep 25, 2026, 4:17 PM
Modified
Sep 28, 2026, 3:17 PM