ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF <= 6.6.1 - Authenticated (Subscriber+) PHP Object Injection via Image URL Replacement

High 7.1 CWE-502Fixed in 6.6.2
ID
WPSEC-2026-3366
Plugin
ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF (shortpixel-image-optimiser)
Affected
all versions before 6.6.2
Remediation
Update to 6.6.2 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-502
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-18
Attack surface
ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF on WPSec AttackSurface
Fix released
Published

Description

The ShortPixel Image Optimizer plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 6.6.1, via the routine that updates image URLs in the database after an image is renamed, converted or restored. A value that WordPress stored as a serialized string, such as serialized-looking text a user saved in a profile field, was unserialized and written back as plain text, so that WordPress deserializes it the next time the value is read. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject a PHP object once the URL update runs over a value they stored that contains the path of the image being processed. No known POP chain is present in the vulnerable software. If a POP chain is present via an additional plugin or theme installed on the target system, it could allow the attacker to delete arbitrary files, retrieve sensitive data, or execute code.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0