All posts

Critical vulnerability

Critical remote code execution in the Restrictions for BuddyPress WordPress plugin (CVE-2026-120539)

Remote code execution in Restrictions for BuddyPress · WordPress plugins

CVE-2026-120539

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

Severity
Critical 9.8
Published
21 Nov 2026
Weakness
Eval injection (CWE-95)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down

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.

From the CVE Program.
SoftwareAffected versions
Bp Restrict (WordPress plugin)WordPress plugins
  • Every version up to 1.5.4
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-120539
Everything about CVE-2026-120539

From NVD, the CVE Program, OSV.dev with the GitHub Advisory Database, WPVulnerability, WordPress's security advisories and CISA's Known Exploited Vulnerabilities catalog, as they stood when this was written. Each vulnerability's own page has its latest rating and fix. This product uses the NVD API but is not endorsed or certified by the NVD.