CVE-2026-1246
Unknown Unknown - Not Provided
Arbitrary File Read in ShortPixel Plugin via Path Traversal

Publication date: 2026-02-05

Last updated on: 2026-02-05

Assigner: Wordfence

Description
The ShortPixel Image Optimizer plugin for WordPress is vulnerable to Arbitrary File Read via path traversal in the 'loadFile' parameter in all versions up to, and including, 6.4.2 due to insufficient path validation and sanitization in the 'loadLogFile' AJAX action. This makes it possible for authenticated attackers, with Editor-level access and above, to read the contents of arbitrary files on the server, which can contain sensitive information such as database credentials and authentication keys.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-05
Last Modified
2026-02-05
Generated
2026-05-27
AI Q&A
2026-02-05
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
shortpixel shortpixel_image_optimizer to 6.4.2 (inc)
shortpixel shortpixel_image_optimizer 6.4.3
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

The ShortPixel Image Optimizer plugin for WordPress has a vulnerability that allows an authenticated user with Editor-level access or higher to read arbitrary files on the server. This happens because the plugin does not properly validate and sanitize the 'loadFile' parameter used in the 'loadLogFile' AJAX action, enabling a path traversal attack.

Through this vulnerability, attackers can access sensitive files on the server, such as those containing database credentials and authentication keys.


How can this vulnerability impact me? :

This vulnerability can have significant security impacts because it allows an attacker with Editor-level permissions to read any file on the server. This could lead to exposure of sensitive information such as database credentials and authentication keys.

Such unauthorized access can compromise the confidentiality of your data and potentially lead to further exploitation or unauthorized access to your WordPress site and its backend systems.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

[{'type': 'paragraph', 'content': "The vulnerability allows authenticated users with Editor-level access or higher to exploit a path traversal issue via the 'loadFile' parameter in the 'loadLogFile' AJAX action of the ShortPixel Image Optimizer plugin. Detection would involve monitoring or testing for unauthorized file read attempts through this AJAX endpoint."}, {'type': 'paragraph', 'content': "Since the vulnerability is exploited via an AJAX request parameter, detection can be attempted by sending crafted requests to the plugin's AJAX handler to see if arbitrary files can be read. For example, an authenticated user could attempt to access sensitive files by manipulating the 'loadFile' parameter."}, {'type': 'list_item', 'content': "Use curl or similar tools to send authenticated AJAX requests to the WordPress site targeting the 'loadLogFile' action with path traversal payloads in the 'loadFile' parameter."}, {'type': 'list_item', 'content': 'Example command (replace placeholders accordingly):'}, {'type': 'list_item', 'content': "curl -X POST -b 'wordpress_logged_in_cookie=YOUR_COOKIE' -d 'action=loadLogFile&loadFile=../../../../etc/passwd' https://yourwordpresssite.com/wp-admin/admin-ajax.php"}, {'type': 'paragraph', 'content': 'If the response contains contents of arbitrary files (like /etc/passwd), the vulnerability is present.'}, {'type': 'paragraph', 'content': "Additionally, monitoring logs for suspicious AJAX requests with unusual 'loadFile' parameter values or unexpected file access patterns can help detect exploitation attempts."}] [2]


What immediate steps should I take to mitigate this vulnerability?

[{'type': 'paragraph', 'content': 'The immediate mitigation step is to update the ShortPixel Image Optimizer plugin to version 6.4.3 or later, where the vulnerability has been fixed.'}, {'type': 'paragraph', 'content': "The update includes strict path validation and sanitization in the 'loadLogFile' AJAX action and other file handling processes to prevent directory traversal attacks."}, {'type': 'list_item', 'content': 'Update the plugin via the WordPress admin dashboard or manually replace plugin files with the fixed version 6.4.3.'}, {'type': 'list_item', 'content': 'Restrict Editor-level and higher user permissions to trusted users only, as the vulnerability requires authenticated access with Editor or above.'}, {'type': 'list_item', 'content': 'Monitor and audit user activities for suspicious file access attempts until the update is applied.'}, {'type': 'paragraph', 'content': 'Avoid using workarounds that involve disabling the plugin unless absolutely necessary, as the plugin provides important image optimization functionality.'}] [2]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart