CVE-2026-44642: Piwigo SQL injection in upgrade authentication

CVE-2026-44642 · Severity: high · CVSS 8.1 · Published 2026-09-25

Piwigo, an open-source photo gallery application, contains a SQL injection vulnerability in its upgrade authentication mechanism that allows unauthenticated attackers to bypass credentials and execute database upgrades. When database upgrades are pending, an attacker can inject malicious SQL through the username field to gain administrative access without valid credentials, potentially corrupting the database and causing service outages. This vulnerability affects versions prior to 16.4.0 and is fixed in that release.

Technologies: Piwigo. Vendors: Piwigo.

Quick answers

Is CVE-2026-44642 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-44642 being exploited in the wild.
How severe is CVE-2026-44642?
High severity, with a CVSS score of 8.1, published 25 September 2026.
Which products and versions are affected?
Piwigo prior to 16.4.0.
Is there a fix for CVE-2026-44642?
A patch was published on 2026-09-25: Fixed in version 16.4.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-44642 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2026-44642?
Check whether you run Piwigo at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability exists in check_upgrade_access_rights() within admin/include/functions_upgrade.php, where user-supplied username input is only conditionally escaped depending on the deprecated get_magic_quotes_gpc function. In PHP 8 and later, where this function no longer exists, the username is concatenated directly into the upgrade authentication SQL query without sanitization. An unauthenticated attacker can craft a malicious query that satisfies the status and password checks to set PHPWG_IN_UPGRADE and authorize upgrade execution, requiring only that database upgrades are pending.

Affected products

  • Piwigo Piwigo prior to 16.4.0

Timeline

  • 2026-09-25: disclosed
  • 2026-09-25: patched: Fixed in version 16.4.0

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.