GitHub Advisory Database
GHSA-q3p9-8728-wq7x
Drupal saving user accounts can sometimes grant the user all roles
Details
The User module in Drupal 6.x before 6.38 and 7.x before 7.43 allows remote attackers to gain privileges by leveraging contributed or custom code that calls the user_save function with an explicit category and loads all roles into the array.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | drupal/core | From 6.0 before 6.38 (fixed in 6.38) |
| Packagist | drupal/core | From 7.0 before 7.43 (fixed in 7.43) |
| Packagist | drupal/drupal | From 7.0 before 7.43 (fixed in 7.43) |
| Packagist | drupal/drupal | From 6.0 before 6.38 (fixed in 6.38) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-3169
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2016-3169.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2016-3169.yaml
- https://github.com/drupal/core
- https://www.drupal.org/SA-CORE-2016-001
- http://www.debian.org/security/2016/dsa-3498
- http://www.openwall.com/lists/oss-security/2016/02/24/19
- http://www.openwall.com/lists/oss-security/2016/03/15/10