CVE-2016-6211: Drupal Saving user accounts can sometimes grant the user all roles
8.8
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.81713%
CWE
Published
5/17/2022
Updated
5/3/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
drupal/core | composer | >= 7.0, < 7.44 | 7.44 |
drupal/drupal | composer | >= 7.0, < 7.44 | 7.44 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability arises when a form rebuild (e.g., via drupal_rebuild_form) retains role selection fields in the user profile form despite lacking proper permission re-checks. The user_profile_form function is responsible for adding role fields conditionally. If a rebuild bypasses the 'administer permissions' check (e.g., due to stale $form_state data), attackers can submit role changes. The fix in Drupal 7.44 enforced permission checks during rebuilds, confirming this function's central role in the vulnerability.