Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-94666 Overview
CVE-2026-94666 is a path traversal vulnerability in the ZealousWeb Generate PDF using Contact Form 7 WordPress plugin. The flaw affects all versions up to and including 4.2.1. Attackers can exploit the issue over the network without authentication or user interaction to read arbitrary files from the WordPress host. The weakness is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory. Patchstack catalogs the issue as an arbitrary file download vulnerability. Successful exploitation leaks file contents outside the plugin's intended directory, including WordPress configuration and secrets.
Critical Impact
Unauthenticated remote attackers can download arbitrary files from the WordPress server, exposing wp-config.php credentials, API keys, and private site data.
Affected Products
- ZealousWeb Generate PDF using Contact Form 7 WordPress plugin
- All versions from n/a through 4.2.1
- WordPress sites running the generate-pdf-using-contact-form-7 plugin
Discovery Timeline
- 2026-10-09 - CVE-2026-94666 published to the National Vulnerability Database
- 2026-10-11 - CVE-2026-94666 last updated in the NVD database
Technical Details for CVE-2026-94666
Vulnerability Analysis
The Generate PDF using Contact Form 7 plugin extends Contact Form 7 with PDF generation and file delivery features. One of its file-handling endpoints accepts a user-controlled path parameter without proper sanitization. Attackers supply directory traversal sequences such as ../ to escape the plugin's working directory and reach arbitrary locations on the filesystem. The server then returns the targeted file to the attacker over HTTP.
Because the endpoint requires no authentication, any remote actor who can reach the WordPress site can trigger the read. The impact is limited to confidentiality; the vector does not provide write or execution primitives on its own. However, leaked database credentials from wp-config.php typically lead to full site compromise through secondary attacks against the WordPress REST API or administrative accounts.
Root Cause
The root cause is missing input validation on a filename or path parameter passed to a download handler. The plugin concatenates attacker input into a filesystem path and reads the resulting file without canonicalizing the path or verifying that it resides within an allowed base directory. This is a textbook CWE-22 implementation error.
Attack Vector
Exploitation is performed with a single HTTP request to the vulnerable plugin endpoint. The attacker injects traversal sequences in the filename parameter to reference files such as ../../../../wp-config.php, /etc/passwd, or backup archives stored on the web host. No user interaction, cookies, or privileges are required. Refer to the Patchstack advisory for additional context on the vulnerable parameter.
Detection Methods for CVE-2026-94666
Indicators of Compromise
- HTTP requests to /wp-content/plugins/generate-pdf-using-contact-form-7/ endpoints containing ../, ..%2f, or URL-encoded traversal sequences
- Access log entries where the response body size matches sensitive files such as wp-config.php
- Outbound responses from the WordPress host containing PHP configuration constants (DB_PASSWORD, AUTH_KEY) returned to anonymous clients
- Unexpected downloads initiated by IP addresses with no prior session on the site
Detection Strategies
- Inspect web server and WAF logs for traversal patterns targeting the generate-pdf-using-contact-form-7 plugin path
- Alert on 200 OK responses to unauthenticated requests that reference filesystem paths outside the plugin directory
- Correlate plugin requests with subsequent login attempts using credentials that match the WordPress database user
Monitoring Recommendations
- Enable detailed access logging on the WordPress reverse proxy or load balancer and retain logs for at least 90 days
- Monitor file integrity on wp-config.php and plugin directories to detect post-exploitation tampering
- Forward WordPress and web server logs to a centralized analytics platform for traversal-pattern detection across the fleet
How to Mitigate CVE-2026-94666
Immediate Actions Required
- Update the Generate PDF using Contact Form 7 plugin to a fixed release once published by ZealousWeb; confirm the installed version is above 4.2.1
- Deactivate and remove the plugin from any WordPress site that does not require it
- Rotate WordPress database credentials, AUTH_KEY and SECURE_AUTH_KEY salts, and any API keys stored in wp-config.php if exploitation is suspected
- Review access logs for prior exploitation attempts dating back to plugin installation
Patch Information
At the time of publication, the vendor had not released a fixed version in the NVD record. Monitor the Patchstack advisory and the plugin's WordPress.org page for release notes above version 4.2.1.
Workarounds
- Block requests to the vulnerable plugin endpoint at the WAF or reverse proxy layer until a patch is applied
- Add WAF rules that reject requests containing ../, ..%2f, ..%5c, or null byte sequences in query parameters addressed to /wp-content/plugins/generate-pdf-using-contact-form-7/
- Restrict the web server user's filesystem permissions so it cannot read files outside the WordPress document root where feasible
- Move secrets out of wp-config.php into environment variables managed by the host configuration
# Example ModSecurity rule to block traversal against the vulnerable plugin
SecRule REQUEST_URI "@contains /wp-content/plugins/generate-pdf-using-contact-form-7/" \
"id:1026094666,phase:2,deny,status:403,log,\
msg:'CVE-2026-94666 path traversal attempt',\
chain"
SecRule ARGS|REQUEST_URI "@rx (\.\./|\.\.%2f|\.\.%5c|%00)" "t:lowercase,t:urlDecodeUni"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

