Technical impact
The s2Member WordPress plugin contains a vulnerability that allows attackers to execute arbitrary PHP code by embedding specially crafted strings in the PayPal IPN "item_name" parameter. The flaw arises from insufficient sanitization in the strip_php_tags_deep() function, which only removes literal "<?" sequences, and a subsequent placeholder cleanup that reconstructs a valid "<?php" opener after the attacker‑controlled value has already been injected into an email template. As a result, PHP code supplied through the "item_name" field is treated as executable server code, leading to full compromise of the WordPress site.
Affected Systems
All installations of the s2Member plugin with build numbers 260927 or lower are affected. The plugin is distributed under the name "clavaque:s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions" and is commonly used on WordPress sites to manage memberships and content access.
Risk and Exploitability
The vulnerability has a CVSS score of 9.8, classifying it as Critical. The EPSS score of 1% indicates a low overall probability of exploitation, yet the high severity rating makes it a high‑priority target for attackers. Exploitation requires an authenticated attacker with at least custom‑level access within the WordPress site to send a crafted IPN POST containing a malicious "item_name" value. The injection results in PHP code execution with the permissions of the WordPress installation, allowing full control over the server’s files, databases, and potential lateral movement. This flaw is not listed in the CISA KEV catalog.