CVE-2025-7341 Path traversal in HT Contact Form – Drag & Drop Form Builder for WordPress

Critical 9.1 Published Updated

Unauthenticated attackers can delete arbitrary files via path traversal, potentially leading to remote code execution by deleting critical configuration files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-7341?

CVE-2025-7341 is a critical path traversal vulnerability in htplugins HT Contact Form – Drag & Drop Form Builder for WordPress, published on 15 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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).

Weakness: CWE-269

Which versions are affected by CVE-2025-7341?

It affects 1 product.

Products include Hasthemes Download Contact Form 7 Widget for Elementor Page Builder \& Gutenberg Blocks.

How do I fix CVE-2025-7341?

No fix has been published for CVE-2025-7341 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-7341 being exploited?

There is no known exploitation of CVE-2025-7341 in the wild and no public exploit code.

Sources

Also known as GHSA-8p4q-cvqh-25cp.

Is CVE-2025-7341 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free