{"id":"CVE-2026-44642","aliases":["CVE-2026-44642"],"related":[],"kind":"vulnerability","state":"published","title":"Piwigo: SQL injection in upgrade authentication allows unauthenticated upgrade authorization bypass (PHP 8+)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-25T15:47:59.389Z","modified":"2026-09-25T17:17:08.577Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 16.4.0","status":"affected"}],"vendor":"Piwigo","product":"Piwigo","source":"cvelist"}],"references":[{"url":"https://github.com/Piwigo/Piwigo/security/advisories/GHSA-6wj3-7fhw-gfpm","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Piwigo/Piwigo/commit/1ff9d04534feb5f8f3cc2d3613c0fe8b51a1c0ba","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Piwigo/Piwigo/commit/2cfa7a3d194c8b95edde43038d8f5be5a359e785","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Piwigo/Piwigo/releases/tag/16.4.0","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-09-25T16:40:38.942Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44642","url":"https://www.cve.org/CVERecord?id=CVE-2026-44642","licence":"CVE Terms of Use","modified":"2026-09-25T16:41:02.238Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44642","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44642","licence":"Public domain","modified":"2026-09-25T17:17:08.577Z"}],"updatedAt":"2026-11-25T22:59:41.104Z","epss":{"score":0.01285,"percentile":0.70961,"date":"2026-12-01T12:00:22.000Z"}}