{"id":"CVE-2024-6317","aliases":["CVE-2024-6317"],"related":[],"kind":"vulnerability","state":"published","title":"Generate PDF using Contact Form 7 <= 4.1.2 - Cross-Site Request Forgery to Arbitrary File Deletion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El complemento Generate PDF using Contact Form 7 para WordPress es vulnerable a Cross-Site Request Forgery para la carga arbitraria de archivos en versiones hasta la 4.0.6 incluida. Esto se debe a que falta la validación nonce y que el complemento no valida correctamente un archivo o su ruta antes de eliminarlo en la función 'wp_cf7_pdf_dashboard_html_page'. Esto hace posible que atacantes no autenticados eliminen archivos arbitrarios, incluido el archivo wp-config.php, lo que puede hacer posible la toma de control del sitio y la ejecución remota de código a través de una solicitud falsificada, siempre que puedan engañar a un administrador del sitio para que realice una acción como hacer clic en un enlace.","source":"nvd"}],"published":"2024-07-09T07:38:44.066Z","modified":"2026-06-17T08:17:46.030Z","severity":{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"4.1.2","status":"affected"}],"vendor":"zealopensource","product":"Generate PDF using Contact Form 7","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"4.0.6","status":"affected"}],"vendor":"zealousweb","product":"generate_pdf_using_contact_form_7","cpe":"cpe:2.3:a:zealousweb:generate_pdf_using_contact_form_7:-:*:*:*:*:wordpress:*:*","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.1.3"}],"vendor":"zealousweb","product":"generate_pdf_using_contact_form_7","cpe":"cpe:2.3:a:zealousweb:generate_pdf_using_contact_form_7:*:*:*:*:*:wordpress:*:*","source":"nvd"}],"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/455b9695-e140-4bdb-b626-5c1695518563?source=cve","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"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","tags":["product","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/changeset/3146943/generate-pdf-using-contact-form-7","tags":[],"sources":["cvelist","nvd"]}],"credits":["István Márton"],"assigner":"Wordfence","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-07-11T20:25:26.372Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6317","url":"https://www.cve.org/CVERecord?id=CVE-2024-6317","licence":"CVE Terms of Use","modified":"2026-04-08T16:49:33.461Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6317","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6317","licence":"Public domain","modified":"2026-06-17T08:17:46.030Z"}],"updatedAt":"2026-11-25T22:58:42.583Z","epss":{"score":0.00919,"percentile":0.58528,"date":"2026-11-30T12:00:22.000Z"}}