CVE-2024-6316 Generate PDF using Contact Form 7 <= 4.1.2 - Cross-Site Request Forgery to Arbitrary File Upload

High 8.8 Published Updated

Unauthenticated attackers can upload arbitrary files via CSRF, potentially leading to remote code execution on WordPress sites using this plugin.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-6316?

CVE-2024-6316 is a high-severity vulnerability in zealopensource Generate PDF using Contact Form 7, published on 9 Jul 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-352

Which versions are affected by CVE-2024-6316?

It affects 1 product.

Products include Zealousweb Generate Pdf Using Contact Form 7.

How do I fix CVE-2024-6316?

No fix has been published for CVE-2024-6316 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-6316 being exploited?

There is no known exploitation of CVE-2024-6316 in the wild and no public exploit code.

Sources

Also known as GHSA-chw9-726p-m659.

Is CVE-2024-6316 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free