Impact
The HT Contact Form widget for Elementor and Gutenberg, a WordPress form builder, contains a flaw in the temp_file_delete() routine that fails to validate file paths. This flaw allows an attacker to specify any file path and delete that file from the server. Removing key configuration files, such as wp-config.php, can quickly lead to full remote code execution. The weakness is classified as improper authorization (CWE‑269).
Affected Systems
The vulnerability affects HT Contact Form – Drag & Drop Form Builder for WordPress, released by htplugins, all versions up to and including 2.2.1. Any site running one of those releases is susceptible.
Risk and Exploitability
The CVSS score of 9.1 indicates high severity, while the EPSS score of less than 1% suggests a low probability of exploitation, and the issue is not yet listed in the CISA KEV catalog. Attackers can trigger the deletion by sending an unauthenticated AJAX request to the temp_file_delete endpoint, which does not require any authentication or elevated privileges. If a critical file is deleted, the attacker can achieve full control of the web application and possibly the underlying server.
OpenCVE Enrichment
EUVD