CVE-2025-6742·PHP vulnerability
The SureForms – Drag and Drop Form Builder for WordPress plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 1.7.3 via the use of file_exists() in the delete_entry_files() function without restriction on the path provided. This makes it possible for unauthenticated attackers to inject a PHP Object. No known POP chain is present in the vulnerable software, which means this vulnerability has no impact unless another plugin or theme containing a POP chain is installed on the site. If a POP chain is present via an additional plugin or theme installed on the target system, it may allow the attacker to perform actions like delete arbitrary files, retrieve sensitive data, or execute code depending on the POP chain present.
- Severity
- high
- Software
- PHP
- Fixed in
- 1.7.4
- Published
- 2025-07-09
Affected versions
From: 1.7.0
Until: 1.7.4
Fixed in: 1.7.4
How to fix this CVE
Update the SureForms WordPress plugin to version 1.7.4 or later, which restricts the path parameter in the delete_entry_files() function to prevent PHP Object Injection attacks. If you cannot immediately update the plugin, disable it until a patch is available. Sites running versions 1.7.0 through 1.7.3 should prioritize this update, especially if other plugins or themes with POP chains are installed.
sudo dnf update phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST requests to WordPress admin-ajax.php or SureForms endpoints containing serialized PHP objects (pattern: O:[0-9]+:"[a-zA-Z_][a-zA-Z0-9_]*") in the delete_entry_files parameter or file path parametersWAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block or sanitize POST requests to WordPress AJAX handlers that contain serialized object patterns (regex: O:\d+:") or restrict file path parameters in SureForms endpoints to alphanumeric characters and forward slashes only, rejecting paths containing null bytes or protocol wrappers (file://, php://, etc.).How to check if you are affected
- Check installed PHP version: php -v
- Verify SureForms plugin version in WordPress: wp plugin list --field=name,version | grep sureforms (via WP-CLI)
- Search WordPress error logs for unusual file_exists() calls or serialized object patterns: grep -E 'file_exists|O:\d+:' /path/to/wordpress/wp-content/debug.log
- Confirm the plugin has been updated to 1.7.4+: wp plugin list --field=name,version sureforms
FAQ
What is CVE-2025-6742?
CVE-2025-6742 is a PHP Object Injection vulnerability in the SureForms WordPress plugin that occurs because the delete_entry_files() function does not properly validate file paths passed to file_exists(). An unauthenticated attacker can exploit this to inject serialized PHP objects, which may lead to arbitrary code execution if a POP (Property-Oriented Programming) chain exists in other installed plugins or themes.
Is CVE-2025-6742 being actively exploited?
No, CVE-2025-6742 is not currently listed on CISA's Known Exploited Vulnerabilities (KEV) catalog, and no public exploit code is available. However, the vulnerability remains a high-severity risk that should be addressed promptly.
What versions of the SureForms plugin are affected by CVE-2025-6742?
Versions 1.7.0 through 1.7.3 are vulnerable. The vulnerability was patched in version 1.7.4.
How do I check if my WordPress site is vulnerable to CVE-2025-6742?
Use WP-CLI to list your SureForms plugin version: wp plugin list --field=name,version sureforms. If the version is between 1.7.0 and 1.7.3, your site is vulnerable.
Does Defensia detect CVE-2025-6742?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP is installed on a monitored server, CVE-2025-6742 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-6742. Free for 1 server.
Get started free