ShortPixel Image Optimizer <= 5.6.3 - Authenticated (Editor+) SQL Injection
Strategic Overview
- Status
- Patched in 5.6.4
- Affected Version
<= 5.6.3- CVSS
- 4.9Medium
- Weakness type
- CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- CVE
CVE-2024-48043
At a glance
CVE-2024-48043 is a medium-severity Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in the ShortPixel Image Optimizer WordPress plugin, affecting versions <= 5.6.3. It carries a CVSS score of 4.9 (reachable over the network; low attack complexity; high confidentiality impact). Exploitation requires an authenticated account at Editor level or above. The issue is fixed in version 5.6.4; sites on affected versions should update now. Disclosed October 2024, reported by Rafie Muhammad.
Vulnerability Overview
The ShortPixel Image Optimizer plugin for WordPress is vulnerable to SQL Injection in versions up to, and including, 5.6.3 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with editor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user. A successful exploit has high impact on confidentiality.
CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Reaching this weakness in ShortPixel Image Optimizer <= 5.6.3 takes an account at Editor level or above. SQL injection happens when request data is concatenated into a query instead of being bound as a parameter, letting an attacker change the structure of the statement rather than just its values.
A working injection can read any table the database user can see, which on a WordPress install means user records, password hashes and session or API secrets stored in options. For ShortPixel Image Optimizer the fix is 5.6.4: builds <= 5.6.3 are affected, anything from 5.6.4 onward is not.
Remediation
Update to version 5.6.4, or a newer patched version
How does WordSec protect against this?
An attacker needs Editor access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: ShortPixel Image Optimizer 5.6.4 closes this, and updating the plugin is the step that ends it.
- Firewall
- Alerts
External References
Related records
Other vulnerabilities in ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF
- 7.5CVE-2026-39471: ShortPixel Image Optimizer PHP Object Injection
CVE-2026-39471 - 6.6ShortPixel Image Optimizer <= 5.4.1 PHP Object Injection
- 6.1ShortPixel Image Optimizer <= 4.22.9 Reflected Cross-Site Scripting
- 5.4CVE-2026-4335: ShortPixel Image Optimizer <= 6.4.3 Stored XSS
CVE-2026-4335 - 5.4CVE-2025-11378: ShortPixel Image Optimizer Settings Import/Export
CVE-2025-11378 - 4.9CVE-2026-1246: ShortPixel Image Optimizer <= 6.4.2 Arbitrary File Read
CVE-2026-1246 - 4.3CVE-2024-48044: ShortPixel Image Optimizer Missing Authorization
CVE-2024-48044
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C