Detection-only triage for CVE-2026-120539 (CVSS 9.8): unauthenticated RCE in Restrictions for BuddyPress <= 1.5.4 via eval() on the request URI. Grades plugin versions against the 1.5.5 fix.
# `buddypress-restrictions-scanner`
Detection-only triage for `CVE-2026-120539`, the unauthenticated remote code execution in `Restrictions for BuddyPress` (`seventhqueen`) that `Wordfence` published on `2026-11-21` — and that already had public exploit code the same morning (`LLCForge`, `08:12 UTC`). Grades your installed plugin version against the fixed release, fingerprints a live site from the version it already discloses, and hunts your access logs for the exploit URI pattern. Nothing here sends a payload, requests a crafted URI, or touches `eval()`.
## `What it checks`
* `CVE-2026-120539` — the `Restrictions for BuddyPress` plugin splices the attacker-controlled request URI into a `PHP` expression inside a double-quoted string and evaluates it with `eval()`. Because `PHP` interpolates double-quoted strings, a payload of the form `{${...}}` in the URL path executes during interpolation itself — no quote breakout required, and `WordPress` slashing does not mitigate it. One unauthenticated `GET` request, arbitrary `PHP` on the server. `CVSS 3.1 9.8` (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`), `CWE-95` (eval injection). The affected conditions ship enabled by default and are evaluated before any logged-in check, so no configuration is needed — but the site must have `BuddyPress` and `Paid Memberships Pro` active alongside the plugin. Without either one, the vulnerable code never runs.
Fixed version, per the vendor (primary source):
| `Build` | `Upgrade to` |
| --- | --- |
| `Restrictions for BuddyPress 1.5.4` and earlier | `1.5.5` (or later) |
There is no workaround. Deactivate the plugin or update to `1.5.5`.
## `Usage`
```bash
# grade a version string
python3 buddypress_restrictions_scanner.py --version "1.5.4"
python3 buddypress_restrictions_scanner.py --version "1.5.5"
# a live site: one plain GET of the plugin readme.txt, nothing else
python3 buddypress_restrictions_scanner.py --url https://example.com
# on the box itself (a WordPress install