Description
Piwigo before v16.4.0 is vulnerable to arbitrary file read and remote code execution in image upload handling when using the Imagick library due to insufficient validation and unsafe processing of user-supplied image files. By abusing format confusion (e.g., disguising SVG content as PNG), an attacker can trigger unintended interpretation of embedded SVG elements that reference local files. In more advanced scenarios, the Imagick support for Magick Scripting Language (MSL) may be abused to process attacker-controlled instructions, potentially leading to unauthorized server-side file writes and remote code execution, depending on configuration. This has been patched in 16.4.0.
Published: 2026-09-25
Score: 7.2 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution and Arbitrary File Read
Action: Immediate Patch
AI Analysis

Impact

The vulnerability in the image upload handling of Piwigo versions prior to 16.4.0 allows an attacker to supply specially crafted image files that are processed by the Imagick library. By exploiting format confusion—such as disguising SVG content as a PNG—the application can inadvertently interpret embedded SVG elements that reference local files. In advanced configurations, the Imagick support for the Magick Scripting Language can be abused to run attacker-provided script commands, potentially resulting in unauthorized file writes or execution of code on the server. The primary impact is that an attacker who can upload images can read arbitrary files from the host filesystem or execute code, leading to full compromise of the web application and its underlying server.

Affected Systems

Vendors and products affected are Piwigo by Piwigo. All releases before v16.4.0 are vulnerable. The fix is applied in release 16.4.0. No additional version details are provided beyond that the patched release is 16.4.0 or newer.

Risk and Exploitability

The overall severity is high, reflected by a CVSS score of 7.2. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. An attacker would exploit the flaw by uploading a malicious image through the web interface, which may require authenticated access to that feature in certain deployments. Once the image is processed, the attacker can read sensitive server files or execute code, depending on the system configuration and the use of the unfamiliar Magick Scripting Language. Given the lack of publicly available exploitation evidence, the risk is moderate to high but may increase if attackers discover automated upload vectors or if the Exploit database gains a working PoC.

Generated by OpenCVE AI on September 25, 2026 at 17:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official update to Piwigo 16.4.0 or later, which removes the vulnerable Imagick processing path.
  • If an update cannot be applied immediately, disable the Imagick extension for image processing or restrict it to safe image formats that do not support SVG or the Magick Scripting Language.
  • Implement server‑side upload checks that block SVG and other vector formats, enforce strict MIME type and file extension validations, and limit the upload size and content to trusted image types.

Generated by OpenCVE AI on September 25, 2026 at 17:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Type Values Removed Values Added
Description Piwigo before v16.4.0 is vulnerable to arbitrary file read and remote code execution in image upload handling when using the Imagick library due to insufficient validation and unsafe processing of user-supplied image files. By abusing format confusion (e.g., disguising SVG content as PNG), an attacker can trigger unintended interpretation of embedded SVG elements that reference local files. In more advanced scenarios, the Imagick support for Magick Scripting Language (MSL) may be abused to process attacker-controlled instructions, potentially leading to unauthorized server-side file writes and remote code execution, depending on configuration. This has been patched in 16.4.0.
Title Piwigo arbitrary file read and remote code execution via insecure image processing
Weaknesses CWE-20
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-25T14:42:29.975Z

Reserved: 2026-09-04T14:50:16.721Z

Link: CVE-2026-85750

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-09-25T14:17:20.330

Modified: 2026-09-25T15:17:56.560

Link: CVE-2026-85750

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T17:30:16Z

Weaknesses
  • CWE-20

    Improper Input Validation