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

- Severity: High 8.8 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.92%, higher than 58% of CVEs (2026-11-30)
- Published: 2024-07-09T07:38:44.066Z
- Modified: 2026-06-17T08:17:46.030Z
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Wordfence

## 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.

(As written by CVE List.)

## Affected

- zealopensource Generate PDF using Contact Form 7: up to 4.1.2
- zealousweb generate_pdf_using_contact_form_7: up to 4.0.6; before 4.1.3

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/455b9695-e140-4bdb-b626-5c1695518563?source=cve> (third-party-advisory)
- <https://plugins.trac.wordpress.org/browser/generate-pdf-using-contact-form-7/tags/4.0.6/inc/templates/cf7-pdf-generation.admin.html.php#L74> (product)
- <https://plugins.trac.wordpress.org/changeset/3146943/generate-pdf-using-contact-form-7>

## Sources

- CVE List: [CVE-2024-6317](https://www.cve.org/CVERecord?id=CVE-2024-6317), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2024-6317](https://nvd.nist.gov/vuln/detail/CVE-2024-6317), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-6317 · Whole record: https://cve.day/CVE-2024-6317.json · Rebuilt by cve.day 2026-11-25T22:58:42.583Z
