Perfmatters <= 2.5.9 - Authenticated (Subscriber+) Arbitrary File Overwrite via 'snippets' Parameter

8.1
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE CVE-2026-4351
CVSS 8.1 (High)
Publicly Published April 9, 2026
Last Updated April 10, 2026
Researcher h0xilo

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`.

References

Share

Vulnerability Details for Perfmatters

Software Type Plugin
Software Slug perfmatters
Patched? Yes
Remediation Update to version 2.6.0, or a newer patched version
Affected Version
  • <= 2.5.9
Patched Version
  • 2.6.0

Recent vulnerabilities in Perfmatters

# Title CVE ID CVSS Researchers Date
1 Perfmatters <= 2.6.4 - Unauthenticated Arbitrary File Read via 's' Parameter CVE-2026-13251 7.5 daroo July 1, 2026
2 Perfmatters <= 2.6.4 - Unauthenticated Stored Cross-Site Scripting CVE-2026-57671 7.2 daroo June 30, 2026
3 Perfmatters <= 2.6.3 - Reflected Cross-Site Scripting CVE-2026-56047 6.1 dutafi June 25, 2026
4 Perfmatters <= 2.5.9.1 - Authenticated (Subscriber+) Arbitrary File Deletion via 'delete' Parameter CVE-2026-4350 8.1 h0xilo April 2, 2026
5 Perfmatters < 2.2.0 - Authenticated (Subscriber+) Stored Cross-Site Scripting CVE-2023-47877 6.4 Dave Jong November 21, 2023
6 Perfmatters <= 2.1.6 - Reflected Cross-Site Scripting CVE-2023-47876 6.1 Dave Jong November 21, 2023
7 Perfmatters <= 2.1.6 - Cross-Site Request Forgery CVE-2023-47875 4.3 Dave Jong November 21, 2023
8 Perfmatters <= 2.1.6 - Missing Authorization CVE-2023-47874 5.3 Dave Jong November 20, 2023

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation