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

# BuddyPress Restrict plugin CVE-2026-120539: unauthenticated RCE
- URL: https://stackurity.ai/blog/buddypress-restrict-cve-2026-120539-wordpress-plugin-rce/
- Published: 2026-11-23T01:35:06.000Z
- Updated: 2026-11-23T01:35:05.000Z
- Description: A critical flaw in the Restrictions for BuddyPress WordPress plugin lets unauthenticated attackers run code. See who is affected, how to check and how to mitigate.
- Author: Stackurity Research Team
- Tags: Linux Servers, #deep-dive

## TL;DR

- **What:** a code injection flaw in the Restrictions for BuddyPress plugin for WordPress, tracked as CVE-2026-120539.
- **Impact:** an unauthenticated attacker can run arbitrary code on the web server with one crafted web request.
- **Severity:** a CVSS v3.1 score of 9.8, rated critical, scored by Wordfence.
- **Exploited:** no source we checked says so yet. It was published on November 21, 2026.
- **Fix:** version 1.5.4 and every earlier release are affected. Update to the release the plugin vendor names, or deactivate and remove the plugin.

## What the flaw is, in plain English

The Restrictions for BuddyPress plugin decides who may see which pages on a membership or community site. According to the NVD description, it builds a PHP expression as text, places the address the visitor requested inside it, and then hands that text to eval(), a PHP function that runs a string as code.

That is a classic injection mistake. PHP treats a double-quoted string specially: it runs any expression written in its variable-interpolation syntax. So an attacker who puts such a payload into the URL path gets their own code executed while the string is being built. The description stresses that no quote breakout is needed and that WordPress' slashing of input does not help. The weakness is catalogued as CWE-95, improper neutralization of directives in dynamically evaluated code.

The conditions that trigger it ship enabled by default and are checked before any logged-in check, so a site owner does not have to configure anything to be exposed, and the attacker does not need an account.

## Why it matters now

One unauthenticated web request is the cheapest kind of attack to automate. Anyone who can read the public advisory can write a scanner that walks a list of WordPress sites and adds a payload to each URL. Code execution on the web server means the attacker can read the site's configuration, including database credentials, change what visitors see and use the server as a starting point inside your network.

There is a mitigating condition. The description says the site must also have BuddyPress and Paid Memberships Pro active next to this plugin, so the exposure is limited to membership and community sites that use that combination. Those are exactly the sites that hold member data and often take payments, so the impact of a takeover is larger than for a brochure site.

Severity is a CVSS v3.1 score of 9.8 from Wordfence. NVD had not yet completed its own analysis when we read the entry, so the score may be revisited. For related WordPress and PHP problems, see our notes on [a WordPress payment plugin flaw that is being targeted](https://stackurity.ai/blog/cryptopayment-gateway-cve-2026-81648-wordpress-plugin/) and on [the PHP session serializer flaw](https://stackurity.ai/blog/php-cve-2026-115560-session-serializer-code-execution/).

## Am I affected?

The description names version 1.5.4 and every earlier release of Restrictions for BuddyPress. The NVD entry has no structured version list, so read the version from the plugin itself. The conditions for the described attack are that BuddyPress and Paid Memberships Pro are both active alongside it.

To check one WordPress site by hand with WP-CLI, run these from the site's directory:

```
wp plugin list
wp plugin status
```

Look for Restrictions for BuddyPress in the output and read its version. Without WP-CLI, open the Plugins page of the WordPress admin and read the version under the plugin's name. If you manage many sites, repeat this on each one, including staging copies, because a forgotten staging site on the public internet is just as reachable.

**Distribution backports.** This is a plugin installed from the WordPress ecosystem, not an operating system package, so distribution security updates do not change it. The fix comes from the plugin's own releases.

## How to mitigate CVE-2026-120539

1. Find every WordPress site you run and list the plugins on each one. Write down where Restrictions for BuddyPress is installed and which version it is on.
2. Update the plugin to the fixed release named by the plugin vendor. The records we checked do not name a fixed version, so read the vendor's release notes and the Wordfence advisory linked from the NVD entry, and do not rely on a version number you have not confirmed.
3. If no fixed release is available to you yet, deactivate and delete the plugin on every site where it is not essential. A deactivated plugin does not run, which removes the code path the attack uses.
4. If a site must keep the plugin running today, restrict who can reach it (for example behind a login or an allow list at the web server or firewall) until the update is installed, and watch the web server log for unusual request paths.
5. After the update, check the plugin version again on each site and confirm it is above 1.5.4\. If you saw suspicious requests before updating, treat the site as possibly compromised: change the database password and the WordPress secret keys, and look for files you did not put there.

## How to check with Stackurity

Checking one site by hand is simple. Knowing which of your servers hold a vulnerable plugin, across teams and staging copies, is where it gets lost.

Stackurity keeps one live inventory of the software on your servers, deployed applications, repositories and container images. Its read-only agent finds WordPress sites on Linux servers from wp-config.php or wp-includes/version.php, and lists their plugins and themes with the latest release from wordpress.org. So the inventory shows you every site that has the plugin and what version it runs, which is the list you need for the steps above. The [remediation documentation](https://stackurity.ai/docs/remediation) explains how fixes are ordered and checked again.

There is an honest limit here. Stackurity does not yet match vulnerabilities in WordPress plugins and themselves, so it will not raise a finding for CVE-2026-120539 on its own. It does flag WordPress core releases that have reached end of life or fell behind their line. Use the inventory to find the sites, then confirm and update the plugin by hand or with your own tooling.

[Try Stackurity free and see every WordPress site you run](https://app.stackurity.dev/signup?utm%5Fsource=blog&utm%5Fmedium=referral&utm%5Fcampaign=linux-servers&utm%5Fcontent=buddypress-restrict-cve-2026-120539-wordpress-plugin-rce).

## FAQ

### What is CVE-2026-120539?

It is a remote code execution flaw in the Restrictions for BuddyPress plugin for WordPress. The plugin puts the request URL into a PHP expression and evaluates it, so an unauthenticated attacker can run code on the server with one crafted web request.

### Which versions of the plugin are affected?

The description names version 1.5.4 and every earlier release. Check the plugin vendor's release notes for the fixed version, because the records we checked do not name one.

### Do I need to be logged in to be attacked?

No. The description says the vulnerable conditions run before any logged-in check, so an unauthenticated visitor can reach them.

### Is my site affected if it only has this plugin?

The description adds a condition: BuddyPress and Paid Memberships Pro both need to be running on the same site. If you do not run both of those, the described attack does not apply, but removing an unneeded plugin is still the safest option.

### Is CVE-2026-120539 exploited in the wild?

We have not seen it in the CISA Known Exploited Vulnerabilities catalogue and no source we checked says it is exploited. It was published on November 21, 2026 with a critical score, so treat it as urgent.

### Does Stackurity find vulnerable WordPress plugins?

Stackurity finds WordPress sites and lists their plugins with the latest release from wordpress.org. It does not yet match vulnerabilities in plugins themselves, so for this flaw it shows you where the plugin is installed, and you confirm the version by hand.

Sources: [NIST National Vulnerability Database, CVE-2026-120539](https://nvd.nist.gov/vuln/detail/CVE-2026-120539). Product facts from [Stackurity's product description](https://stackurity.ai/llms.txt).