{
  "id": "CVE-2026-44642",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-44642",
  "published_at": "2026-09-25T15:47:59.389Z",
  "title": "Piwigo: SQL injection in upgrade authentication allows unauthenticated upgrade authorization bypass (PHP 8+)",
  "vendor": "Piwigo",
  "product": "Piwigo",
  "cvss": {
    "score": 8.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-89",
  "cvss_by_source": {
    "cna": 8.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Piwigo",
        "product": "Piwigo",
        "ranges": [
          "\u003c 16.4.0"
        ],
        "fixed_in": [
          "16.4.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Piwigo to 16.4.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/Piwigo/Piwigo/security/advisories/GHSA-6wj3-7fhw-gfpm"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Piwigo/Piwigo/commit/1ff9d04534feb5f8f3cc2d3613c0fe8b51a1c0ba"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Piwigo/Piwigo/commit/2cfa7a3d194c8b95edde43038d8f5be5a359e785"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/Piwigo/Piwigo/releases/tag/16.4.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
