CVE-2026-4351 Details
Description
The Perfmatters plugin for WordPress is vulnerable to arbitrary file overwrite via path traversal in all versions up to, and including, 2.5.9. This is due to the `PMCS::action_handler()` method processing the bulk action `activate`/`deactivate` handlers without any authorization check or nonce verification. The `$_GET['snippets'][]` values are passed unsanitized to `Snippet::activate()`/`Snippet::deactivate()` which call `Snippet::update()` then `file_put_contents()` with the traversed path. This makes it possible for authenticated attackers, with Subscriber-level access and above, to overwrite arbitrary files on the server with a fixed PHP docblock content, potentially causing denial of service by corrupting critical files like `.htaccess` or `index.php`.
A path traversal vulnerability allowing arbitrary file overwrite has been identified in the Perfmatters plugin for WordPress, affecting all versions through 2.5.9. The issue arises in the 'PMCS::action_handler()' method, which processes bulk actions without proper authorization checks or nonce verification. Unsanitized values from the 'snippets' parameter are passed to 'Snippet::activate()' and 'Snippet::deactivate()', ultimately leading to 'Snippet::update()' and 'file_put_contents()' being called with the traversed path. This vulnerability enables authenticated attackers with Subscriber-level access or higher to overwrite arbitrary files on the server with a fixed PHP docblock content. Such actions could corrupt critical files like '.htaccess' or 'index.php', potentially causing a denial-of-service condition.
Users are advised to update the Perfmatters plugin to version 2.6.0 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 10, 2026CISA-ADP
Assessed Apr 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://perfmatters.io/docs/changelog/ | [email protected] | Release NotesVendor |
| https://www.wordfence.com/threat-intel/vulnerabilities/id/c172ab2b-ce1f-4a0d-b31f-b75ff2f03506?source=cve | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Perfmatters | <= 2.5.9 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 10, 2026 | New CVE Received | [email protected] |
Volerion