# 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`), https://wordpress.org/plugins/contact-form-plugin/
- **Affected versions:** from 3.80 before 4.4.0
- **Fixed in:** 4.4.0 (Update to 4.4.0 or later.)
- **Severity:** Medium 4.8 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L)
- **Weakness:** CWE-73
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-17)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/contact-form-plugin
- **Fix released:** 2026-11-16
- **Published:** 2026-11-17
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3293/

## 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/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3293/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
