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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-89"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44642.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "16.4.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "1ff9d04534feb5f8f3cc2d3613c0fe8b51a1c0ba"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "2cfa7a3d194c8b95edde43038d8f5be5a359e785"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "16.4.0",
"range": [
{
"fixed": "bef1a4ac424b4e986589e4cfc9f4d134f1b16f15"
}
],
"source": "REFERENCES_TAG"
}
]
}