Summary
The Restrictions for BuddyPress plugin for WordPress, in all versions up to and including 1.5.4, allows an unauthenticated attacker to execute arbitrary code on the server. It is tracked as CVE-2026-120539 with a CVSS 3.1 score of 9.8 (critical).
What happened
The plugin inserts the attacker-controlled request URI into a PHP expression that it then evaluates dynamically. This corresponds to CWE-95 (code injection in dynamic evaluation). According to the description, an unauthenticated attacker can achieve arbitrary code execution on the server with a single GET request. The affected conditions are enabled by default and are evaluated before any logged-in check, so no plugin configuration is needed. For a site to be vulnerable, BuddyPress and Paid Memberships Pro must be active alongside this plugin.
Why it matters
The CVSS 3.1 score is 9.8 (vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, assigned by CNA:Wordfence) and the severity is critical. The attack is carried out over the network, requires no privileges or user interaction, and may affect the confidentiality, integrity and availability of the server. The source does not report active exploitation of this vulnerability.
Affected products and versions
Restrictions for BuddyPress (vendor: seventhqueen): all versions up to and including 1.5.4 (<= 1.5.4). Exploitation also requires BuddyPress and Paid Memberships Pro to be active on the site.
| Product | Versions | Fixed in |
|---|---|---|
| seventhqueen Restrictions for BuddyPress | <= 1.5.4 | — |
Action recommended by the source
The source does not explicitly state a fixed version or a mitigation. Among the references is the release page for version 1.5.5 in the vendor's repository (https://github.com/seventhqueen/buddypress-restrict/releases/tag/1.5.5), which is worth consulting for details. Further information is available in the Wordfence advisory: https://www.wordfence.com/threat-intel/vulnerabilities/id/fab68c0b-2211-4cc4-a112-f0011f9d72ed?source=cve
Sources and references
- https://www.wordfence.com/threat-intel/vulnerabilities/id/fab68c0b-2211-4cc4-a112-f0011f9d72ed?source=cve — CVE Program
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/admin/class-bp-restrict-pmpro.php#L187 — CVE Program
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/admin/class-bp-restrict-pmpro.php#L184 — CVE Program
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/includes/class-bp-restrict.php#L210 — CVE Program
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/includes/class-bp-restrict.php#L172 — CVE Program
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/admin/class-bp-restrict-admin.php#L213 — CVE Program
- https://github.com/seventhqueen/buddypress-restrict/releases/tag/1.5.5 — CVE Program
Weaknesses (CWE): CWE-95
Relevant change history
Published
Advisory published.