HT Contact Form Widget for Elementor <= 2.2.1 - Unauthenticated Arbitrary File Upload
CVE-2025-7340
Verified
Description
The HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder plugin for WordPress is vulnerable to arbitrary file upload in all versions up to and including 2.2.1 due to missing file type validation in the temp_file_upload() function. The handler is registered on the wp_ajax_nopriv_ht_form_temp_file_upload action, so an unauthenticated attacker holding a form nonce (exposed on any page rendering the [ht_form] widget) can upload a PHP file to wp-content/uploads/ht_form/temp/ and execute it, achieving remote code execution.
Severity
Critical
CVSS Score
9.8
Exploit Probability
6%
Affected Product
ht-contactform
Published Date
November 11, 2026
Template Author
dhiyaneshdk
CVE-2025-7340.yaml
9.8Score
CVSS Metrics
CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE ID:
cve-2025-7340
CWE ID:
cwe-434
Remediation Steps
Update HT Contact Form Widget to 2.2.2 or later, which validates the uploaded file extension with wp_check_filetype() and rejects disallowed types.