Contact Form <= 4.3.9 - Unauthenticated Limited File Overwrite and Deletion via Attachment File Name
- ID
- WPSEC-2026-3293
- Plugin
- Contact Form by BestWebSoft – Advanced WP Contact Form Builder for WordPress (contact-form-plugin)
- Affected
- from 3.80 before 4.4.0
- Remediation
- Update to 4.4.0 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
- Weakness
- CWE-73
- Usage
- Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-17
- Attack surface
- Contact Form on WPSec AttackSurface
- Fix released
- Published
Description
The Contact Form by BestWebSoft plugin for WordPress is vulnerable to limited file overwrite and deletion via contact form attachments in versions 3.80 to 4.3.9. When a message was sent with the default wp_mail sending method, the plugin copied each uploaded attachment into the upload folder under the attacker-supplied original file name, with the random 'cntctfrm_<md5>_' prefix removed, overwriting any existing file of that name, and then deleted that copy (with several attachments, only the last copy was deleted). This makes it possible for unauthenticated attackers to delete files in the current uploads folder, such as media files, or replace their content, by submitting attachments with matching names and an allowed file type. Exploitation requires the form's attachment feature to be enabled.
References
- https://wpsec.com/vuln/WPSEC-2026-3293/
- https://plugins.svn.wordpress.org/contact-form-plugin/tags/4.4.0/
- https://wordpress.org/plugins/contact-form-plugin/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS