CVE-2026-124217: Pie Register <= 3.8.4.17 - Missing Authorization to Unauthenticated Administrator Role Modification via Oversized 'username' Parameter
The Pie Register – User Registration, Profiles & Content Restriction plugin for WordPress is vulnerable to authorization bypass in all versions up to, and including, 3.8.4.17 This is due to the plugin not properly verifying that a user is authorized to perform an action. This makes it possible for unauthenticated attackers to overwrite the role of the site's primary administrator account (user ID 1) with the registration form's configured role, demoting the administrator to a lower-privileged role and locking them out of wp-admin. This vulnerability is exploitable only on PHP 8+, where casting a WPError object to int yields 1, causing the role modification to target user ID 1.
Affected Software
Event History
Frequently Asked Questions
Which sites are exposed to this issue?
Sites using Pie Register versions through 3.8.4.17 are affected only when running PHP 8 or later. The issue can be exploited without authentication over the network.
What can an attacker do?
An unauthenticated attacker can change the role of the primary administrator account, user ID 1, to the role configured for the registration form. This can demote that administrator and prevent them from accessing wp-admin.
Does exploitation require an existing account or administrator interaction?
No. The vector is network-accessible and requires neither attacker privileges nor user interaction.
How can I determine whether exploitation may have occurred?
Check the role assigned to the WordPress user with ID 1 and verify whether that account can still access wp-admin. A role matching the registration form's configured role, combined with unexpected administrator lockout, is consistent with the described impact.