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.
Published: 2026-07-02
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The TinyPNG – JPEG, PNG & WebP image compression plugin for WordPress includes a flaw that allows authenticated users with author‑level access or higher to inject a file path into the 'convert.path' field of the 'tiny_compress_images' post meta and trigger the delete_converted enabling the files such as wp‑config.php can give an attacker full control of the site, resulting in remote code execution. The weakness is a classic path‑traversal flaw (CWE‑22). Based on the description, it is inferred that an attacker can exploit this vulnerability by injecting an arbitrary server file path into the 'convert.path' field of an attachment they own and then triggering attachment deletion to invoke the vulnerable code path.

Affected Systems

Affected systems: The TinyPNG – JPEG, PNG & WebP image compression plugin for WordPress, version 3.6.13 and earlier, is impacted. All WordPress installations that use this plugin and have users with author-level or higher roles can be affected. The flaw exists regardless of the underlying WordPress core version.

Risk and Exploitability

With a CVSS score of 8.1, the vulnerability is reported as < 1%, indicating a very low probability of exploitation. It is not listed in the CISA KEV catalog, so no active exploitation is known. Based on the description, it is inferred that an attacker would need author‑level or higher access and control over an attachment they own. By injecting a file path into the 'convert.path' field of that attachment's post meta and triggering deletion, the attacker server. Such a deletion, for example of wp-config.php, could lead to remote code execution and complete site compromise.

Generated by OpenCVE AI on July 21, 2026 at 10:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the TinyPNG plugin to the latest release that contains the fixed delete_converted_image_size function.
  • If an update is not immediately possible, temporarily deactivate or remove the TinyPNG plugin from the WordPress installation.
  • Restrict the capability to delete attachments by ensuring only administrators hold the 'delete_attachments' role capability, or by configuring the plugin to disallow arbitrary file deletions.

Generated by OpenCVE AI on July 21, 2026 at 10:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Tinypng
Tinypng tinypng – Jpeg, Png & Webp Image Compression
Wordpress
Wordpress wordpress
Vendors & Products Tinypng
Tinypng tinypng – Jpeg, Png & Webp Image Compression
Wordpress
Wordpress wordpress

Thu, 02 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 02 Jul 2026 19:15:00 +0000

Type Values Removed Values Added
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.
Title TinyPNG <= 3.6.13 - Authenticated (Author+) Arbitrary File Deletion via 'convert.path' in 'tiny_compress_images' Post Meta
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H'}


Subscriptions

Tinypng Tinypng – Jpeg, Png & Webp Image Compression
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-02T19:40:57.141Z

Reserved: 2026-04-28T12:43:26.086Z

Link: CVE-2026-7311

cve-icon Vulnrichment

Updated: 2026-07-02T19:40:51.075Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T11:00:05Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')