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.
CVE-2026-7311
Score 8.1 from GitHub Security Advisory (severity: HIGH) published 2026-07-02. a secondary CVSS source baseline 8.1; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.1
- EG Score
- 8.1(high)
- EPSS
- 47.5%
- KEV
- Not listed
Published
July 2, 2026
Last Modified
July 6, 2026
References (6)
- security@wordfencehttps://plugins.trac.wordpress.org/browser/tiny-compress-images/tags/3.6.13/src/class-tiny-image-size.php#L245
- security@wordfencehttps://plugins.trac.wordpress.org/browser/tiny-compress-images/tags/3.6.13/src/class-tiny-image.php#L144
- security@wordfencehttps://plugins.trac.wordpress.org/browser/tiny-compress-images/tags/3.6.13/src/class-tiny-plugin.php#L859
- security@wordfencehttps://plugins.trac.wordpress.org/browser/tiny-compress-images/tags/3.6.13/src/config/class-tiny-config.php#L12
- security@wordfencehttps://plugins.trac.wordpress.org/changeset/3532827/tiny-compress-images
- security@wordfencehttps://www.wordfence.com/threat-intel/vulnerabilities/id/eb8a673e-a192-41d4-b53b-7d786887242d?source=cve
Vendor Advisories for CVE-2026-7311(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 28× in last 7d / 28× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-06 22:16 UTCEG score recompute
- 2026-07-06 22:15 UTCGHSA enrichment
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 11:21 UTCEG score recompute
- 2026-07-06 11:21 UTCGHSA enrichment
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 00:28 UTCEG score recompute
- 2026-07-06 00:27 UTCGHSA enrichment
- 2026-07-05 13:33 UTCEG score recompute
- 2026-07-05 13:33 UTCGHSA enrichment
- 2026-07-05 02:40 UTCEG score recompute
- 2026-07-05 02:39 UTCGHSA enrichment
- 2026-07-05 02:31 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 15:45 UTCEG score recompute
- 2026-07-04 15:45 UTCGHSA enrichment
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 04:50 UTCEG score recompute
- 2026-07-04 04:50 UTCGHSA enrichment
- 2026-07-03 17:55 UTCEG score recompute
- 2026-07-03 17:55 UTCGHSA enrichment
- 2026-07-03 07:01 UTCEG score recompute
Show 3 moreShow fewer
- 2026-07-03 07:01 UTCGHSA enrichment
- 2026-07-02 20:07 UTCEG score recompute
- 2026-07-02 20:05 UTCNVD updatefirst tracked
Frequently asked(5)
What is CVE-2026-7311?
When was CVE-2026-7311 disclosed?
Is CVE-2026-7311 actively exploited?
What is the CVSS score of CVE-2026-7311?
How do I remediate CVE-2026-7311?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-7311
Is Your Infrastructure Affected by CVE-2026-7311?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.