CVE-2026-62262 Piwigo: Unauthenticated SQL injection in `pwg.images.filteredSearch.create`

Critical 9.1 Published Updated

Unauthenticated attackers can extract database information via SQL injection in Piwigo when the rating feature is enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-62262?

CVE-2026-62262 is a critical SQL injection vulnerability in Piwigo, published on 25 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Piwigo is a full featured open source photo gallery application for the web. In 17.0.0beta1 and earlier, when rating is enabled, an unauthenticated guest can call pwg.images.filteredSearch.create with a crafted ratings[] value and then open the returned search URL. include/ws_functions/pwg.images.php stores the unvalidated value in the search rules, and include/functions_search.inc.php integer-casts only the lower rating bound while concatenating the raw value as the SQL upper bound. This allows error-based or blind extraction of database information and database-dependent time delays through the public search flow. No fixed version is available as of this review.

Weakness: CWE-89

Which versions are affected by CVE-2026-62262?

How do I fix CVE-2026-62262?

No fix has been published for CVE-2026-62262 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-62262 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-62262 exists.

Sources

Also known as GHSA-hq29-8hhx-5jwc.

Is CVE-2026-62262 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free