Skip to main content

TinyPNG WordPress Plugin EUVDEUVD-2026-41418

| CVE-2026-7311 HIGH
Path Traversal (CWE-22)
2026-07-02 Wordfence GHSA-p2fp-6329-h7jp
8.1
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain author-level WordPress account
  2. Delivery
    Upload attachment and own it
  3. Exploit
    Set 'convert.path' in tiny_compress_images post meta to target file
  4. Install
    Trigger attachment deletion
  5. C2
    delete_converted_image_size unlinks arbitrary file
  6. Execute
    Delete wp-config.php to force reinstall state
  7. Impact
    Escalate to remote code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated WordPress account with author-level capabilities or above (CVSS PR:L) on a site running TinyPNG plugin ≤ 3.6.13; the attacker must be able to create/own an attachment and set its 'tiny_compress_images' post meta 'convert.path' value to an arbitrary absolute filesystem path, then trigger attachment deletion to reach delete_converted_image_size. No user interaction is needed (UI:N) and it is network-reachable via the normal wp-admin/media workflow (AV:N). Limiting factors: exploitation is gated by the author-or-above privilege requirement (not exploitable by unauthenticated or subscriber-only users), and the escalation to RCE depends on the web-server process having permission to delete high-value files (e.g., wp-config.php) and on the target file actually being unlink-able at a known path.

Impact

The supplied CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H = 8.1) indicates a network-reachable, low-complexity attack requiring low privileges and no user interaction, with high integrity and availability impact and no confidentiality impact - consistent with a destructive file-deletion primitive rather than data theft. Modeled on SSVC terms, technical impact is high and exploitation is straightforward once author access is obtained, but the automatable dimension is limited because the attacker must first hold a valid author-or-above account, making this more suited to insider/compromised-account or multi-tenant/membership-site abuse than mass, unauthenticated internet scanning. No EPSS score, KEV entry, or public POC was provided, so real-world exploitation signals are currently absent; the practical priority is elevated for sites that grant author+ roles to semi-trusted users and lower for tightly controlled single-author blogs. The RCE-via-wp-config.php claim is credible but is a secondary escalation, not directly reflected in the CVSS vector (confidentiality is scored N even though a takeover would ultimately expose data) - treat the RCE outcome as a realistic consequence rather than an independently confirmed exploit.

Exploit ScenarioDerived

An attacker who registers or compromises an author-level WordPress account uploads an image attachment they own, then edits its 'tiny_compress_images' post meta so the 'convert.path' field points to an absolute server path such as /var/www/html/wp-config.php. When they trigger deletion of that attachment, the vulnerable delete_converted_image_size code unlinks the targeted file; removing wp-config.php places the site into a re-installable state that can be steered toward attacker-controlled database credentials and code execution. No public POC was provided, but the low attack complexity (AC:L) and lack of required user interaction make the path reliable once author access is held.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 02, 2026

Arbitrary file deletion in the TinyPNG (JPEG, PNG & WebP image compression) plugin for WordPress affects all versions through 3.6.13, allowing authenticated attackers with author-level access or higher to delete any file the web server can reach. Because deleting sensitive files such as wp-config.php pushes the site into a fresh-install state, this file-deletion primitive can be escalated to full remote code execution. There is no public exploit identified at time of analysis and the flaw is not listed in CISA KEV, but it was disclosed by Wordfence with a clear exploitation path and carries a CVSS 8.1 (High).

RemediationAI

Upstream fix available (changeset/commit); a released patched version is not independently confirmed from the provided data - the corrective code is in WordPress.org plugin changeset 3532827 (https://plugins.trac.wordpress.org/changeset/3532827/tiny-compress-images), so update the tiny-compress-images plugin to the first release built from that changeset (the next version after 3.6.13) as soon as it is available and confirmed by the vendor. Until you can verify the patched version, apply compensating controls: restrict who holds author-or-above roles and audit existing author/editor accounts, since exploitation requires that privilege level; if the plugin is not actively needed, deactivate and remove it to eliminate the code path entirely (trade-off: image compression stops); consider tightening filesystem permissions so the PHP/web-server user cannot delete wp-config.php or files outside wp-content/uploads (trade-off: may break other plugins that write outside uploads); and add a web application firewall rule to monitor or block manipulation of the 'tiny_compress_images' post meta and 'convert.path' field (Wordfence customers may receive a signature). Verify remediation against the Wordfence advisory URL above.

Affected VersionsENISA

TinyPNG – JPEG, PNG & WebP image compression 0 ≤3.6.13

Affected Packages

euvd tinypng_jpeg_png_webp_image_compression no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The plugin (WordPress slug tiny-compress-images) integrates the TinyPNG/TinyJPG compression API into the WordPress media library, storing per-attachment conversion metadata in the 'tiny_compress_images' post meta. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / Path Traversal): the delete_converted_image_size function in class-tiny-image-size.php (around line 245) uses an attacker-controllable 'convert.path' value from that post meta without validating that the path stays within the intended uploads directory. When an attachment is deleted, the plugin walks its stored size metadata (class-tiny-image.php:144, class-tiny-plugin.php:859) and unlinks the referenced path, so a poisoned path is dereferenced directly against the filesystem with the privileges of the PHP/web-server user.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
vuln.today AI 8.1 HIGH

Author-level account is required so PR:L; the media/post-meta path is network-reachable and reliable (AV:N, AC:L, UI:N); arbitrary deletion yields I:H/A:H with no direct data disclosure (C:N).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

The TinyPNG WordPress plugin (all versions through 3.6.13) contains an arbitrary file deletion vulnerability allowing authenticated users with author-level access to delete critical site files, including wp-config.php, which can be escalated to remote code execution and complete site compromise. Organizations using this plugin face risk of unauthorized site takeover and data destruction. This requires immediate remediation to prevent potential compromise of affected WordPress installations.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigation: Disable the vulnerable plugin immediately; restrict author-level user accounts to trusted administrators only; implement read-only file permissions on wp-config.php and other critical WordPress files; monitor web server logs for unusual file deletion attempts; implement Web Application Firewall (WAF) rules to prevent file deletion requests through the plugin.

Threat Intelligence Overview

EPSS Score
0.7%
Top 53% exploitable
Prevalence
Medium
popular but non-universal WordPress image-compression plugin
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy