// Güvenlik

Critical RCE vulnerability in the BuddyPress plugin

A critical vulnerability was found in versions 1.5.4 and earlier of the Restrictions for BuddyPress plugin, allowing code to be executed on the server with a single request without logging in. The issue was fixed in version 1.5.5.

A critical security vulnerability has been discovered in the Restrictions for BuddyPress plugin used on WordPress sites, allowing an attacker to execute commands on the server without creating an account. The vulnerability was assigned CVE-2026-120539 and has a CVSS score of 9.8. Versions 1.5.4 and earlier are affected; the fixed version is 1.5.5.

One request is all it takes

The issue stems from the plugin inserting the request URI provided by the visitor directly into a PHP expression while evaluating access restrictions, then executing that expression with eval(). Because PHP interpolates variables in double-quoted strings, a payload written into the URL path in the form {${...}} is executed without requiring any extra trick, such as breaking out of a string. WordPress’s sanitization of backslashes in incoming data does not prevent this either.

The result is arbitrary code execution on the server with a single unauthenticated GET request. The plugin’s default settings leave these conditions enabled, and the check runs before verifying whether the user is logged in. In other words, the attacker does not need to join the site or change any plugin settings.

Who is affected

Affected installations have one thing in common: both BuddyPress and Paid Memberships Pro must be active on the site. According to the WordPress plugin directory, Restrictions for BuddyPress has more than 300 active installations. Community sites, membership-based blogs, and course platforms often use this combination.

Details of the vulnerability are publicly available: the relevant lines in the plugin’s version repository and the 1.5.5 release notes on GitHub. The release notes state that the fix ensures request data is no longer part of the executed code, and that restrictions intended only for logged-in members are skipped for guest users.

What to do

If you use the plugin, first check its version in the WordPress admin panel. If you see version 1.5.4 or earlier, update to 1.5.5 immediately. After updating, check whether anything is wrong with the site’s front end or membership flow; since the restriction rules have changed in this release, it’s worth testing how members-only pages behave.

If you no longer use the plugin, removing it is the safest option. If you still use it but can’t update right away, temporarily deactivating it will close the vulnerability. Also, keep track of the versions of these kinds of plugins on your site; flaws that require no authentication, like this one, are quickly tested by automated browser-based scans.

A reminder for site administrators: keeping track of plugin versions after security patches are released is the most practical way to keep your attack surface closed. With a vulnerability like this, a delay can mean the server is directly compromised.

Source: GitHub · Restrictions for BuddyPress 1.5.5 · CVE-2026-120539

// JOIN THE CONVERSATION

Share your experience

Bir sorunun, farklı bir çözümün veya eklemek istediğin bir notun var mı? Giriş yapmadan da yazabilirsin.

// KEEP READING

One more note.

All posts ↗︎