CVE-2024-6317 Generate PDF using Contact Form 7 <= 4.1.2 - Cross-Site Request Forgery to Arbitrary File Deletion

High 8.8 Published Updated

Unauthenticated attackers can delete arbitrary files, including wp-config.php, via CSRF, potentially leading to site takeover and remote code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-6317?

CVE-2024-6317 is a high-severity vulnerability in zealopensource Generate PDF using Contact Form 7, published on 9 Jul 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The Generate PDF using Contact Form 7 plugin for WordPress is vulnerable to Cross-Site Request Forgery to Arbitrary File Upload in versions up to, and including, 4.1.2. This is due to missing nonce validation and the plugin not properly validating a file or its path prior to deleting it in the 'wp_cf7_pdf_dashboard_html_page' function. This makes it possible for unauthenticated attackers to delete arbitrary files, including the wp-config.php file, which can make site takeover and remote code execution possible via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.

Weakness: CWE-352

Which versions are affected by CVE-2024-6317?

It affects 1 product.

Products include Zealousweb Generate Pdf Using Contact Form 7.

How do I fix CVE-2024-6317?

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

Is CVE-2024-6317 being exploited?

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

Sources

Also known as GHSA-ffg2-5fg9-qrwc.

Is CVE-2024-6317 in your software?

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

Check your SBOMs for free