CVE-2024-6317
published high CVSS 3.1 · 8.8Generate PDF using Contact Form 7 <= 4.1.2 - Cross-Site Request Forgery to Arbitrary File Deletion
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| zealopensource | — | Generate PDF using Contact Form 70 through 4.1.2 · Other versions: unaffected | Affected | Not stated | Wordfence |
| zealousweb | — | generate_pdf_using_contact_form_70 through 4.0.6 · Other versions: unaffected | Affected | Not stated | CISA-ADP |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Wordfence · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| zealopensource | Generate PDF using Contact Form 7 | 0 through 4.1.2 (affected · semver)Default: unaffected | Wordfence · cna |
| zealousweb | generate_pdf_using_contact_form_7 | 0 through 4.0.6 (affected · custom)Default: unaffected | CISA-ADP · adp |
Weaknesses
1- CWE-352 CWE-352 Cross-Site Request Forgery (CSRF)
References
3- 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
- https://plugins.trac.wordpress.org/changeset/3146943/generate-pdf-using-contact-form-7
- https://www.wordfence.com/threat-intel/vulnerabilities/id/455b9695-e140-4bdb-b626-5c1695518563?source=cve
Provider assertions
3Wordfence · cna
Generate PDF using Contact Form 7 <= 4.1.2 - Cross-Site Request Forgery to Arbitrary File Deletion
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0f010dd7f236e0e22cab279493fa7fab08780ee510dee9c4711b0ffdba5bd6eb
- Ingested
- 23 Sep 2026, 08:33:03 UTC
- Source record
- Official CVE record