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

Published Jul 9, 2024
·
Updated

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 'wpcf7pdfdashboardhtmlpage' 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.

Affected Software

2 affected components
ZealousWeb Generate Pdf Using Contact Form 7 Wordpress<4.1.3
WordPress Generate PDF using Contact Form 7<=4.0.6

Event History

Jul 9, 2024
CVE Published
via MITRE·07:38 AM
Data Sourced
via MITRE·07:38 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-6317?

CVE-2024-6317 has been classified as a high-severity vulnerability due to its potential for arbitrary file uploads.

2

How do I fix CVE-2024-6317?

To fix CVE-2024-6317, update the Generate PDF using Contact Form 7 plugin to version 4.0.7 or higher.

3

What versions are affected by CVE-2024-6317?

CVE-2024-6317 affects all versions of the Generate PDF using Contact Form 7 plugin up to and including 4.0.6.

4

What type of vulnerability is CVE-2024-6317?

CVE-2024-6317 is a Cross-Site Request Forgery (CSRF) vulnerability that allows for arbitrary file upload.

5

What problems can CVE-2024-6317 cause?

CVE-2024-6317 can lead to unauthorized file uploads, potentially compromising the affected WordPress site.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203