CVE-2026-7311
Received Received - Intake

Arbitrary File Deletion in TinyPNG WordPress Plugin

Vulnerability report for CVE-2026-7311, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-02

Last updated on: 2026-07-02

Assigner: Wordfence

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-02
Last Modified
2026-07-02
Generated
2026-07-03
AI Q&A
2026-07-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
tiny_png tiny_png to 3.6.13 (inc)
tinypng tinypng to 3.6.13 (inc)

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 Quick Actions

Instant insights powered by AI
Executive Summary

The TinyPNG – JPEG, PNG & WebP image compression plugin for WordPress has a vulnerability that allows authenticated users with author-level access or higher to delete arbitrary files on the server.

This happens because the plugin does not properly validate file paths in the delete_converted_image_size function, which is triggered when an attachment is deleted.

An attacker can exploit this by injecting a malicious file path into the 'convert.path' field of the 'tiny_compress_images' post meta on an attachment they own, then deleting that attachment to cause the plugin to delete the specified file.

Impact Analysis

This vulnerability can have severe impacts because it allows an attacker to delete arbitrary files on the server.

If critical files such as wp-config.php are deleted, it can lead to remote code execution, potentially allowing the attacker to take full control of the affected WordPress site.

This can result in website downtime, data loss, unauthorized access, and compromise of the server hosting the site.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-7311. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart