CVE-2026-7311 Details
Description
The TinyPNG – JPEG, PNG & WebP image compression plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the delete_converted_image_size function in all versions up to, and including, 3.6.13. This makes it possible for authenticated attackers, with author-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). An attacker can exploit this by injecting an arbitrary server file path into the 'convert.path' field of the 'tiny_compress_images' post meta on an attachment they own, then triggering attachment deletion to invoke the vulnerable code path.
A vulnerability allowing arbitrary file deletion has been identified in the TinyPNG – JPEG, PNG & WebP image compression plugin for WordPress, affecting all versions through 3.6.13. The issue arises from inadequate file path validation in the 'delete_converted_image_size' function. This vulnerability enables authenticated attackers with author-level access and above to delete arbitrary files on the server. Exploitation of this flaw could lead to remote code execution if a critical file, such as 'wp-config.php', is deleted. To exploit this vulnerability, an attacker must inject a file path into the 'convert.path' field of the 'tiny_compress_images' post meta for an attachment they own, and then trigger the deletion of that attachment.
Users are advised to update the TinyPNG WordPress plugin to version 3.6.14 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 2, 2026CISA-ADP
Assessed Jul 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| TinyPNG | <= 3.6.13 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 2, 2026 | CVE Modified | CISA-ADP |
| Jul 2, 2026 | New CVE Received | [email protected] |
Volerion