# CVE-2026-44642: Piwigo: SQL injection in upgrade authentication allows unauthenticated upgrade authorization bypass (PHP 8+)

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.29%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-25T15:47:59.389Z
- Modified: 2026-09-25T17:17:08.577Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Piwigo is a full featured open source photo gallery application for the web. Prior to 16.4.0, check_upgrade_access_rights() in admin/include/functions_upgrade.php conditionally escapes the submitted username only when the removed get_magic_quotes_gpc function exists, so PHP 8 and later concatenate an unauthenticated username directly into the upgrade authentication SQL query. When database upgrades are pending, a crafted query result can satisfy the status and password checks, set PHPWG_IN_UPGRADE, and authorize upgrade execution without valid administrator credentials. This can cause unauthorized database integrity changes and service disruption. This vulnerability is fixed in 16.4.0.

(As written by CVE List.)

## Affected

- Piwigo Piwigo: < 16.4.0

## References

- <https://github.com/Piwigo/Piwigo/security/advisories/GHSA-6wj3-7fhw-gfpm> (exploit)
- <https://github.com/Piwigo/Piwigo/commit/1ff9d04534feb5f8f3cc2d3613c0fe8b51a1c0ba>
- <https://github.com/Piwigo/Piwigo/commit/2cfa7a3d194c8b95edde43038d8f5be5a359e785>
- <https://github.com/Piwigo/Piwigo/releases/tag/16.4.0>

## Sources

- CVE List: [CVE-2026-44642](https://www.cve.org/CVERecord?id=CVE-2026-44642), CVE Terms of Use, modified 2026-09-25
- NVD: [CVE-2026-44642](https://nvd.nist.gov/vuln/detail/CVE-2026-44642), Public domain, modified 2026-09-25

---

Page: https://cve.day/CVE-2026-44642 · Whole record: https://cve.day/CVE-2026-44642.json · Rebuilt by cve.day 2026-11-25T22:59:41.104Z
