{"id":"CVE-2026-7311","aliases":["CVE-2026-7311"],"related":[],"kind":"vulnerability","state":"published","title":"TinyPNG <= 3.6.13 - Authenticated (Author+) Arbitrary File Deletion via 'convert.path' in 'tiny_compress_images' Post Meta","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-07-02T18:32:13.440Z","modified":"2026-07-06T18:02:49.450Z","severity":{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"3.6.13","status":"affected"}],"vendor":"tinypng","product":"TinyPNG – JPEG, PNG & WebP image compression","source":"cvelist"}],"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/eb8a673e-a192-41d4-b53b-7d786887242d?source=cve","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/tiny-compress-images/tags/3.6.13/src/class-tiny-image-size.php#L245","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/tiny-compress-images/tags/3.6.13/src/config/class-tiny-config.php#L12","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/tiny-compress-images/tags/3.6.13/src/class-tiny-image.php#L144","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/tiny-compress-images/tags/3.6.13/src/class-tiny-plugin.php#L859","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/changeset/3532827/tiny-compress-images","tags":[],"sources":["cvelist","nvd"]}],"credits":["lhking"],"assigner":"Wordfence","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-02T19:36:26.226Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-7311","url":"https://www.cve.org/CVERecord?id=CVE-2026-7311","licence":"CVE Terms of Use","modified":"2026-07-02T19:40:57.141Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-7311","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7311","licence":"Public domain","modified":"2026-07-06T18:02:49.450Z"}],"updatedAt":"2026-11-25T22:59:27.049Z","epss":{"score":0.00651,"percentile":0.5249,"date":"2026-12-01T12:00:22.000Z"}}