Threat Feed

CVE-2026-120539: seventhqueen Restrictions for BuddyPress · Remote code execution

Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-11-21

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.

Enclave's analysis

Restrictions for BuddyPress up to 1.5.4 splices the URL path straight into a PHP eval() call, so one crafted GET request gives an attacker full remote code execution with no login needed. The bug only fires when BuddyPress and Paid Memberships Pro are also active — exactly the setup this plugin is built for. It was just disclosed, so there's no public exploit code or observed attacks yet, but reading the shipped source confirms the path is real and trivial to trigger. Update to 1.5.5 now.

Fix

Upgrade Restrictions for BuddyPress (bp-restrict) to 1.5.5. No fixed version is listed for Restrictions for BuddyPress; follow the vendor advisory.

Affected versions

ProductVulnerableFixed in
Restrictions for BuddyPress0 through 1.5.4Not listed
Restrictions for BuddyPress (bp-restrict)<= 1.5.41.5.5

Seen in 3 sources