# CVE-2026-62262: Piwigo SQL injection in image rating search

Source: https://junglewise.ai/threats/cve-2026-62262-piwigo-is-a-full-featured-open-source-photo-gallery-application  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-25. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-62262 · Severity: critical · CVSS 9.1 · Published 2026-09-25

Piwigo is a web-based photo gallery application. An unauthenticated attacker can exploit an unvalidated search filter to inject malicious SQL through the image rating feature, allowing them to extract sensitive database information or cause time-based delays without authentication.

Technologies: [Piwigo](https://junglewise.ai/threats/technologies/piwigo). Vendors: [Piwigo](https://junglewise.ai/threats/vendors/piwigo).

## Quick answers

**Is CVE-2026-62262 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-62262 being exploited in the wild.

**How severe is CVE-2026-62262?** Critical severity, with a CVSS score of 9.1, published 25 September 2026.

**Which products and versions are affected?** Piwigo 17.0.0beta1 and earlier.

**Is there a fix for CVE-2026-62262?** A patch was published on 2026-09-25: Fixes available via commits 9755d88 and aede490 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-62262 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-62262?** Check whether you run Piwigo at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a SQL injection flaw in the image search functionality (pwg.images.filteredSearch.create). When rating is enabled, the ratings[] parameter is not properly validated before being concatenated into SQL queries. The code only casts the lower bound to integer but concatenates the upper bound directly, allowing injection of arbitrary SQL for error-based or time-based data exfiltration via the public search flow.

## Affected products

- Piwigo Piwigo 17.0.0beta1 and earlier

## Timeline

- 2026-09-25: disclosed: CVE-2026-62262 published
- 2026-09-25: patched: Fixes available via commits 9755d88 and aede490

## References

- [https://github.com/Piwigo/Piwigo/commit/9755d88edf38b94bafdedb0b3aba7304a94e2e5c](https://github.com/Piwigo/Piwigo/commit/9755d88edf38b94bafdedb0b3aba7304a94e2e5c)
- [https://github.com/Piwigo/Piwigo/commit/aede490a0b3a6c246f1f4689ca86c8fee377a7ae](https://github.com/Piwigo/Piwigo/commit/aede490a0b3a6c246f1f4689ca86c8fee377a7ae)

## Related threats

- [Piwigo SQL injection in upgrade authentication](https://junglewise.ai/threats/cve-2026-44642-piwigo-is-a-full-featured-open-source-photo-gallery-application)
- [Piwigo SQL injection via unvalidated image_order parameter](https://junglewise.ai/threats/cve-2026-42324-piwigo-is-a-full-featured-open-source-photo-gallery-application)
- [Piwigo SQL injection in batch manager filter](https://junglewise.ai/threats/cve-2026-42323-piwigo-is-a-full-featured-open-source-photo-gallery-application)
- [Piwigo arbitrary code execution via logo upload extension validation bypass](https://junglewise.ai/threats/cve-2026-42322-piwigo-is-a-full-featured-open-source-photo-gallery-application)
- [Piwigo arbitrary file read and RCE in image upload handling](https://junglewise.ai/threats/cve-2026-85750-piwigo-before-v16-4-0-is-vulnerable-to-arbitrary-file-read-and)
