CVE-2026-42322 Piwigo: Authenticated RCE via File Upload in Logo Upload Feature

Critical 9.1 Published Updated

An authenticated administrator can upload malicious files with executable extensions to achieve remote code execution in Piwigo.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-42322?

CVE-2026-42322 is a critical vulnerability in Piwigo, published on 25 Sep 2026. An attacker needs administrator access to exploit it, with no action from the victim.

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

Weakness: CWE-434

Which versions are affected by CVE-2026-42322?

How do I fix CVE-2026-42322?

No fix has been published for CVE-2026-42322 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-42322 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42322 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-7w97-5g4p-xqvv.

Is CVE-2026-42322 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free