Cyber Resilience

CVE-2024-6317

High

Published: 09 July 2024

Published
09 July 2024
Modified
08 April 2026
KEV Added
Patch
CVSS Score v3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.0613 91.0th percentile
Risk Priority 21 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2024-6317 is a high-severity CSRF (CWE-352) vulnerability in Zealousweb Generate Pdf Using Contact Form 7. Its CVSS base score is 8.8 (High).

Operationally, ranked in the top 9.0% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

Deeper analysis

The Generate PDF using Contact Form 7 plugin for WordPress, in versions through 4.1.2, contains a Cross-Site Request Forgery vulnerability that permits arbitrary file deletion. The flaw stems from absent nonce validation combined with insufficient checks on file paths inside the wp_cf7_pdf_dashboard_html_page function, allowing an attacker to supply a forged request that removes any file on the server.

An unauthenticated attacker can exploit the issue by crafting a malicious request that deletes critical files such as wp-config.php; successful exploitation requires only that a site administrator be tricked into performing an action such as clicking a link, after which site takeover and remote code execution become possible. The vulnerability carries a CVSS 3.1 score of 8.8.

Public references, including the Wordfence advisory and the plugin’s Trac changeset 3146943, indicate that the issue was addressed by updating the plugin to enforce proper nonce checks and file validation; administrators are therefore advised to upgrade beyond version 4.1.2.

EPSS for the CVE rose from a low baseline to a recorded peak of 0.0833, indicating that exploitation interest increased after disclosure.

EU & UK References

Vulnerability details

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…

more

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.

CWE(s)

Related Threats

No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.

Affected Assets

zealousweb
generate pdf using contact form 7
≤ 4.1.3

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-352

Awareness training educates users on avoiding untrusted links and actions that can be exploited via CSRF.

addresses: CWE-352

Requiring user re-entry of credentials for sensitive actions prevents automated forgery of requests without active user participation.

addresses: CWE-352

Security testing regimens explicitly include checks for missing or ineffective anti-CSRF protections in web applications.

addresses: CWE-352

Detects anomalous request patterns consistent with cross-site request forgery.

References