CVE-2025-7341

HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder. <= 2.2.1 - Unauthenticated Arbitrary File Deletion

Published Jul 15, 2025 CVSS 3.1 · 9.1 Critical EPSS 1.5% KEV · Not listed
Description
The HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the temp_file_delete() function in all versions up to, and including, 2.2.1. This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php).

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade HT Contact Form – Drag & Drop Form Builder for WordPress to any newer version.
  • If an upgrade is not immediately possible, disable or restrict the temp_file_delete AJAX action so that only authenticated administrators can invoke it.
  • Reconfigure file system permissions to prevent the web server process from deleting core WordPress files such as wp-config.php.
  • Implement monitoring and logging for file deletion events and set up alerts for unauthorized changes.

Generated by OpenCVE AI on April 22, 2026 at 01:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-21415 The HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder. plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the temp_file_delete() function in all versions up to, and including, 2.2.1. This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php).
History
Type Values Removed Values Added
Description The HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder. plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the temp_file_delete() function in all versions up to, and including, 2.2.1. This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). The HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the temp_file_delete() function in all versions up to, and including, 2.2.1. This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php).
Type Values Removed Values Added
First Time appeared Hasthemes
Hasthemes download Contact Form 7 Widget For Elementor Page Builder \& Gutenberg Blocks
CPEs cpe:2.3:a:hasthemes:download_contact_form_7_widget_for_elementor_page_builder_\&_gutenberg_blocks:*:*:*:*:*:wordpress:*:*
Vendors & Products Hasthemes
Hasthemes download Contact Form 7 Widget For Elementor Page Builder \& Gutenberg Blocks
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics epss

{'score': 0.00214}

Type Values Removed Values Added
Description The HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder. plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the temp_file_delete() function in all versions up to, and including, 2.2.1. This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php).
Title HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder. <= 2.2.1 - Unauthenticated Arbitrary File Deletion
Weaknesses CWE-269
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}

Weaknesses
  • CWE-269

    Improper Privilege Management

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 4:45 PM
Reserved
Jul 7, 2025, 8:52 PM
Status
Modified
Published
Jul 15, 2025, 5:15 AM
Modified
Jun 17, 2026, 10:04 AM