CVE-2024-6316
published high CVSS 3.1 · 8.8Generate PDF using Contact Form 7 <= 4.1.2 - Cross-Site Request Forgery to Arbitrary File Upload
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_71.0 through 4.0.6 · Other versions: unknown | 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 missing file type validation in the 'wp_cf7_pdf_dashboard_html_page' 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.
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 | 1.0 through 4.0.6 (affected · custom)Default: unknown | 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#L72
- https://plugins.trac.wordpress.org/changeset/3146943/generate-pdf-using-contact-form-7
- https://www.wordfence.com/threat-intel/vulnerabilities/id/52cce49b-49b3-49b0-9f18-4829f07a420f?source=cve
Provider assertions
3Wordfence · cna
Generate PDF using Contact Form 7 <= 4.1.2 - Cross-Site Request Forgery to Arbitrary File Upload
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 759650d5a60247a6635f5b9164e7e92aadb1e6ec075f97cb931371d77c75eea1
- Ingested
- 23 Sep 2026, 08:33:03 UTC
- Source record
- Official CVE record