# CVE-2026-120539

The Restrictions for BuddyPress plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.5.4 This is due to the plugin splicing the attacker-controlled request URI into a PHP expression inside a double-quoted string and evaluating it with eval(). Because PHP interpolates double-quoted strings, a payload of the form {${...}} in the URL path is executed during interpolation, so no quote breakout is required and WordPress' slashing does not mitigate it. This makes it possible for unauthenticated attackers to execute arbitrary code on the server with a single GET request. The affected conditions ship enabled by default and are evaluated before any logged-in check, so no plugin configuration is needed; the site must have BuddyPress and Paid Memberships Pro active alongside this plugin.

- Page: https://www.vulneraibility.com/cve/CVE-2026-120539
- CVSS: 9.8
- Known exploited: not in CISA KEV as of our last sync
- EPSS: 2.16% (percentile 82.6)
- Unvetted proof-of-concept code on GitHub: 1 GitHub proof of concept (first 2026-11-21)
- Weakness: CWE-95
- Published: 2026-11-21

## Affected versions

- seventhqueen Restrictions for BuddyPress: affected <= 1.5.4

A version outside these ranges is not a statement that it is unaffected.

## References

- [other] https://www.wordfence.com/threat-intel/vulnerabilities/id/fab68c0b-2211-4cc4-a112-f0011f9d72ed?source=cve
- [other] https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/admin/class-bp-restrict-pmpro.php#L187
- [other] https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/admin/class-bp-restrict-pmpro.php#L184
- [other] https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/includes/class-bp-restrict.php#L210
- [other] https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/includes/class-bp-restrict.php#L172
- [other] https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/admin/class-bp-restrict-admin.php#L213
- [other] https://github.com/seventhqueen/buddypress-restrict/releases/tag/1.5.5

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
