> ## Content Index
> Fetch the complete content index at: https://securexion.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# CVE-2026-120539: Restrictions for BuddyPress plugin – unauthenticated remote code execution
- URL: https://securexion.com/cve-2026-120539/
- Published: 2026-11-22T01:30:00.000Z
- Updated: 2026-11-23T09:20:17.000Z
- Description: The Restrictions for BuddyPress plugin up to version 1.5.4 evaluates attacker-controlled URL paths directly in PHP eval(), allowing remote code execution via specially crafted GET requests. No authentication or user interaction is required; the vulnerable code runs before any login check.
- Author: Securexion Team
- Tags: Vulnerability, Critical, #brief-2026-11-22

The plugin constructs a PHP expression by embedding the request URI into a double-quoted string and executing it with eval(). Because PHP interpolates variables and expressions inside double-quoted strings, an attacker can inject a payload like {${...}} in the URL path. This payload executes during string interpolation before the eval() even runs, bypassing quote-escape protections and WordPress slashing filters. The vulnerable code path is enabled by default and runs before authentication checks, making every unpatched installation with BuddyPress, this plugin, and Paid Memberships Pro active immediately exploitable.

| CVE                 | CVE-2026-120539                  |
| ------------------- | -------------------------------- |
| Severity            | Critical (CVSS 9.8)              |
| Actively exploited  | Not confirmed at time of writing |
| Weakness            | CWE-95 (code injection (eval))   |
| Attack vector       | Network                          |
| Privileges required | None                             |
| User interaction    | None                             |
| Published           | 21 Nov 2026                      |

## How the attack works

## Who is affected

WordPress sites running the Restrictions for BuddyPress plugin in versions up to 1.5.4, alongside active BuddyPress and Paid Memberships Pro plugins. No login or configuration is required for the vulnerability to be exploitable.

## How to check if you're exposed

- Inventory WordPress plugins and confirm presence of 'Restrictions for BuddyPress' and its version number
- Check active plugins list in WordPress admin; look for version ≤1.5.4
- Search web server logs for suspicious GET requests containing curly braces, dollar signs, or expression syntax in URL paths (e.g., patterns like {$ or }{)
- Review PHP error logs for unexpected eval() execution or parse errors following unusual HTTP requests

## How to fix it

- Deactivate and delete the Restrictions for BuddyPress plugin immediately from all WordPress installations
- If the plugin is essential, check the vendor's repository for a patched version ≥1.5.5 or higher and upgrade to it
- Upgrade to a version of BuddyPress and Paid Memberships Pro that may provide a workaround or disable the vulnerable flow
- Scan the site for web shells or backdoors left behind by exploitation; review file modification times and check for unexpected PHP files

## If you can't patch yet

- Temporarily disable BuddyPress or Paid Memberships Pro if they cannot be removed, to prevent the vulnerable code path from loading
- Apply a WAF rule to block GET requests containing expressions like {$ or }{ in the URL path before they reach PHP
- Restrict access to the WordPress site to known IP ranges while patching is in progress

---

*Need help checking your exposure or patching at scale?* [*FutureOps InfoTech*](https://futureopstech.com/?ref=securexion.com) *can help.*