VDB
Sign up
HIGH8.1

GHSA-q3p9-8728-wq7x

Drupal saving user accounts can sometimes grant the user all roles

Quick fix

GHSA-q3p9-8728-wq7x — drupal/core: upgrade to the fixed version with the command below.

composer require drupal/core:^6.38

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/drupal/core
Introduced in: 6.0Fixed in: 6.38
Fixcomposer require drupal/core:^6.38
Packagist/drupal/core
Introduced in: 7.0Fixed in: 7.43
Fixcomposer require drupal/core:^7.43
Packagist/drupal/drupal
Introduced in: 7.0Fixed in: 7.43
Fixcomposer require drupal/drupal:^7.43
Packagist/drupal/drupal
Introduced in: 6.0Fixed in: 6.38
Fixcomposer require drupal/drupal:^6.38

References