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

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 missing file type validation in the 'wpcf7pdfdashboardhtmlpage' function. This makes it possible for unauthenticated attackers to upload arbitrary files on the affected site's server which may make 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. CVE-2024-37555 is a duplicate of this issue.

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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade wordpress/plugins/"Generate PDF using Contact Form 7" to a version that resolves this vulnerability.

    Fixed in 4.1.2
  2. Compensating control

    Ensure only trusted, intended users can access the WordPress action that triggers the forged request (mitigate CSRF by preventing unauthenticated attackers from successfully tricking an administrator into performing the affected action).

  3. Operational

    After applying the fix, check the WordPress site for any files uploaded as a result of the CSRF/upload weakness and remove any unexpected files.

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-6316?

CVE-2024-6316 is classified as a critical vulnerability due to potential unauthorized file uploads.

2

How do I fix CVE-2024-6316?

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

3

What types of attacks can CVE-2024-6316 enable?

CVE-2024-6316 can enable Cross-Site Request Forgery attacks leading to arbitrary file uploads.

4

Which WordPress versions are affected by CVE-2024-6316?

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

5

Is nonce validation required to mitigate CVE-2024-6316?

Yes, nonce validation is essential to mitigate the risks associated with CVE-2024-6316.

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