{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-3758",
 "modified": "2026-11-24T07:42:15Z",
 "published": "2026-11-24T07:42:15Z",
 "summary": "Square Thumbnails <= 2.4.0 - Authenticated (Author+) Limited Arbitrary File Deletion via Square Thumbnail Cleanup",
 "details": "The Square Thumbnails plugin for WordPress is vulnerable to limited arbitrary file deletion via the attachment deletion cleanup routine in all versions up to, and including, 2.4.0, due to the cleanup_on_attachment_delete() function deleting every file matched by broad glob patterns (such as '<name>*-sqt.*' and '<name>-[0-9]*x[0-9]*.*') built from the deleted attachment's file name, without checking whether the matched files belong to other attachments. This makes it possible for authenticated attackers, with Author-level access and above, to upload and then delete an image with a chosen file name, causing thumbnail and square image files of other users' attachments in the same uploads folder to be deleted.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "square-thumbnails"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "2.3.5"
      },
      {
       "fixed": "2.5"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 2.3.5 before 2.5"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-3758/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/square-thumbnails/tags/2.5/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/square-thumbnails/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-3758/",
  "cwe_ids": [
   "CWE-706"
  ],
  "vulnerability_type": "FILE DELETION",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
