# CVE-2026-120539: Restrictions for BuddyPress <= 1.5.4 - Unauthenticated Remote Code Execution via Request URI String Interpolation in eval()

- Severity: Critical 9.8 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.33%, higher than 83% of CVEs (2026-12-01)
- Published: 2026-11-21T05:35:04.067Z
- Modified: 2026-11-23T17:17:29.997Z
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Wordfence

## Description

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.

(As written by CVE List.)

## Affected

- seventhqueen Restrictions for BuddyPress: up to 1.5.4

## References

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

## Sources

- CVE List: [CVE-2026-120539](https://www.cve.org/CVERecord?id=CVE-2026-120539), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-120539](https://nvd.nist.gov/vuln/detail/CVE-2026-120539), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-120539 · Whole record: https://cve.day/CVE-2026-120539.json · Rebuilt by cve.day 2026-11-25T22:59:52.488Z
