high CVSS 7.5

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 php

Defensia 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 parameters

WAF 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

  1. Check installed PHP version: php -v
  2. Verify SureForms plugin version in WordPress: wp plugin list --field=name,version | grep sureforms (via WP-CLI)
  3. 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
  4. 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

CVE-2026-28289CVSS 10FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. A patch bypass vulnerability for CVE-2026-27636 in FreeScout 1.8.206 and earlier allows any authenticated user with file upload permissions to achieve Remote Code Execution (RCE) on the server by uploading a malicious .htaccess file using a zero-width space character prefix to bypass the security check. The vulnerability exists in the sanitizeUploadedFileName() function in app/Http/Helper.php. The function contains a Time-of-Check to Time-of-Use (TOCTOU) flaw where the dot-prefix check occurs before sanitization removes invisible characters. This vulnerability is fixed in 1.8.207.
CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.
CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.

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