CVE-2026-102435: WordPress Contact Form 7 Ultra Addons – Unauthenticated arbitrary file deletion leading to RCE

Ultra Addons for Contact Form 7 versions up to 3.5.54 contain unsafe deserialization in the _getObjAttr function that allows unauthenticated attackers to delete arbitrary files via a POP gadget chain when the PDF Generator add-on is active. Deletion of critical files like wp-config.php can

Share

The vulnerability resides in unsafe deserialization (CWE-502) within the Ultra Addons for Contact Form 7 plugin. An attacker can craft a malicious serialized object that exploits the _getObjAttr function to delete arbitrary files on the server. The attack chain leverages the WPCF7_Submission POP gadget and the __destruct magic method to execute file deletion when the PHP object is destroyed. This is particularly dangerous when the PDF Generator feature is enabled, as it provides the necessary gadget chain to complete the exploitation.

CVECVE-2026-102435
SeverityCritical (CVSS 9.8)
Actively exploitedNot confirmed at time of writing
WeaknessCWE-502 (unsafe deserialization)
Attack vectorNetwork
Privileges requiredNone
User interactionNone
Published2 Nov 2026

How the attack works

An attacker sends a crafted serialized PHP object to a vulnerable endpoint. When PHP deserializes this object, it instantiates malicious gadget chains that abuse the plugin's _getObjAttr function and the __destruct magic method. The gadget chain manipulates file paths without proper validation, allowing the attacker to specify any file on the server for deletion. If critical files such as wp-config.php are removed, the site can be reconfigured for code execution.

Who is affected

WordPress sites running Ultra Addons for Contact Form 7 versions up to and including 3.5.54 with the PDF Generator add-on active. Any site with Contact Form 7 configured for PDF generation is at risk.

How to check if you're exposed

  • Inventory WordPress plugins and identify all sites running Ultra Addons for Contact Form 7; note the installed version
  • Check plugin settings or database configuration to confirm whether PDF Generator is enabled for any Contact Form 7 forms
  • Review web server and application logs for POST requests to the vulnerable endpoint with serialized object payloads or unusual file access patterns
  • Audit recent file deletion events in the web root, particularly any unexpected removal of wp-config.php, .htaccess, or core WordPress files

How to fix it

  • Update Ultra Addons for Contact Form 7 to a patched version (if available); check the plugin vendor for security updates
  • If an update is not yet available, disable the PDF Generator feature immediately until a patch is released
  • Remove or deactivate the Ultra Addons for Contact Form 7 plugin if it cannot be patched and is not essential to operations
  • Verify file integrity of wp-config.php, wp-load.php, and other core WordPress files; restore from a known-good backup if any have been deleted

If you can't patch yet

  • Disable the PDF Generator add-on in Contact Form 7 to prevent the gadget chain from completing, even if the plugin cannot be immediately patched
  • Implement Web Application Firewall (WAF) rules to block requests with serialized PHP objects or unusual Content-Type headers to vulnerable endpoints
  • Restrict file system permissions and use read-only mode for critical WordPress configuration files where possible to limit the impact of unauthorized deletion attempts

Need help checking your exposure or patching at scale? FutureOps InfoTech can help.

Read more