Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
Piwigo Piwigo
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Piwigo 是一款功能完整的开源 Web 照片画廊应用程序。在 16.4.0 版本之前,admin/include/functions_upgrade.php 中的 check_upgrade_access_rights() 函数仅在已移除 get_magic_quotes_gpc 函数的条件下对提交的用户名进行转义处理。因此,在 PHP 8 及更高版本中,未经身份验证的用户名会被直接拼接到升级认证 SQL 查询语句中。当存在待处理的数据库升级任务时,构造的查询结果可以满足状态和密码检查,并设置 PHPWG_IN

CVSS 8.1 · High EPSS 1.29% · P69

Affected Version Matrix 1

VendorProduct Version RangeStatus
Piwigo Piwigo < 16.4.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-44642

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Piwigo: SQL injection in upgrade authentication allows unauthenticated upgrade authorization bypass (PHP 8+)
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Piwigo Piwigo < 16.4.0 -

II. Public POCs for CVE-2026-44642

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-44642

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-44642 (2)

Vendor Advisories for CVE-2026-44642 (1)

Other References for CVE-2026-44642 (1)

Same Patch Batch · Piwigo · 2026-09-25 · 6 CVEs total

CVE-2026-42322 9.1 CRITICAL Piwigo: Authenticated RCE via File Upload in Logo Upload Feature
CVE-2026-62262 9.1 CRITICAL Piwigo: Unauthenticated SQL injection in `pwg.images.filteredSearch.create`
CVE-2026-42324 7.2 HIGH Piwigo: Second-Order SQL Injection
CVE-2026-42323 7.2 HIGH Piwigo: SQL Injection in Batch Manager
CVE-2026-85750 7.2 HIGH Piwigo arbitrary file read and remote code execution via insecure image processing

IV. Related Vulnerabilities

V. Comments for CVE-2026-44642

No comments yet


Leave a comment