Drupal User Module Privilege Escalation

drupal/core Updated 02 Oct 2025

Summary

17/05/2022
Yes i
High
8.1

CVE-2016-3169: Drupal saving user accounts can sometimes grant the user all roles. Affects drupal/core across 2 version ranges.

>= 6.0, < 6.38 >= 7.0, < 7.43

Fixed in 6.38 or 7.43, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Drupal is a popular open-source content management system (CMS) used to build websites and applications. The User module in Drupal allows administrators to manage user accounts and assign roles to them. This vulnerability affects Drupal versions 6.x before 6.38 and 7.x before 7.43. The vulnerability arises when contributed or custom code calls the user_save function with an explicit category and loads all roles into the array. This can lead to privilege escalation, allowing remote attackers to gain unauthorized privileges.

Vulnerability Detail

The vulnerability in the User module of Drupal allows attackers to gain privileges by exploiting the user_save function. By leveraging contributed or custom code, an attacker can manipulate the function to load all roles into the array, granting themselves unauthorized privileges. This can have severe consequences, as attackers can gain administrative access, modify content, or perform other malicious actions on the affected Drupal site.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 6.0, < 6.38 6.38
    composer require drupal/core:6.38
  • >= 7.0, < 7.43 7.43
    composer require drupal/core:7.43

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update Drupal to the patched versions as soon as possible.

Conclusion

The Drupal User module privilege escalation vulnerability can have severe consequences, allowing attackers to gain unauthorized privileges on affected sites. It is crucial to update Drupal to the patched versions and review any custom or contributed code that calls the user_save function. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for drupal/core →

Share this vulnerability

FAQ

Drupal is an open-source content management system (CMS) used to build websites and applications.

Drupal versions 6.x before 6.38 and 7.x before 7.43 are affected.

This vulnerability allows remote attackers to gain unauthorized privileges, potentially leading to administrative access and unauthorized actions on the affected Drupal site.

No, there are no known workarounds for this vulnerability. Updating Drupal to the patched versions is the recommended solution.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your Drupal site is affected by this vulnerability. It analyzes your composer.lock file and provides real-time alerts for open-source vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for drupal/core.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 6.0, < 6.38 6.38
    composer require drupal/core:6.38
  • >= 7.0, < 7.43 7.43
    composer require drupal/core:7.43

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback