Vulnerabilities / Contact Form / WPSEC-2026-3293

Contact Form <= 4.3.9 - Unauthenticated Limited File Overwrite and Deletion via Attachment File Name

Medium 4.8 CWE-73Fixed in 4.4.0
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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0