CVE-2026-62262

Piwigo: Unauthenticated SQL injection in `pwg.images.filteredSearch.create`

Published Sep 25, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An unauthenticated guest can invoke the pwg.images.filteredSearch.create endpoint with a crafted ratings[] value. The application stores the raw value in the search rules and later concatenates it as the SQL upper bound after only casting the lower bound to an integer. This flaw permits error‑based or blind SQL injection, enabling attackers to exfiltrate database data or create database‑dependent time delays. The weakness is a failure to properly validate and sanitize user input, identified as CWE‑89.

Affected Systems

Piwigo’s Piwigo photo‑gallery application, versions 17.0.0beta1 and all earlier releases. No fixed version has been published yet.

Risk and Exploitability

The CVSS score of 9.1 indicates high severity with full attacker impact. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog. Based on the description, the attack vector is unauthenticated access to the public search feature; an attacker can trigger the flaw by crafting a request to filteredSearch.create and then visiting the resulting search URL to extract data. Without a vendor patch, exploitation is possible on any publicly reachable instance.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Restrict or disable the rating feature if not required, thereby removing the vulnerable endpoint from public use.
  • Apply the official code changes from the referenced commits (9755d88e and aede490a) to add proper input validation for the ratings[] parameter or replace the vulnerable code with a secure alternative.
  • If a patch is unavailable, block access to the pwg.images.filteredSearch.create endpoint for unauthenticated users or enforce authentication before allowing access to the search functionality.

Generated by OpenCVE AI on September 25, 2026 at 18:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Piwigo
Piwigo piwigo
Vendors & Products Piwigo
Piwigo piwigo
Type Values Removed Values Added
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.
Title Piwigo: Unauthenticated SQL injection in `pwg.images.filteredSearch.create`
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 29, 2026, 7:19 PM
Reserved
Jul 13, 2026, 5:09 PM
Status
Deferred
Published
Sep 25, 2026, 4:17 PM
Modified
Sep 29, 2026, 8:17 PM