TinyPNG <= 3.6.13 - Authenticated (Author+) Arbitrary File Deletion via 'convert.path' in 'tiny_compress_images' Post Meta

8.1
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE CVE-2026-7311
CVSS 8.1 (High)
Publicly Published July 2, 2026
Last Updated July 2, 2026
Researcher lhking

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.

References

Share

Vulnerability Details for TinyPNG – JPEG, PNG & WebP image compression

Software Type Plugin
Software Slug tiny-compress-images (view on wordpress.org)
Patched? Yes
Remediation Update to version 3.6.14, or a newer patched version
Affected Version
  • <= 3.6.13
Patched Version
  • 3.6.14

Recent vulnerabilities in TinyPNG – JPEG, PNG & WebP image compression

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation