CVE-2018-16984: Django - Password Hash Disclosure

django Updated 02 Oct 2025

Summary

02/10/2018
Yes i
Moderate
4.9

CVE-2018-16984: An issue was discovered in Django 2.1 before 2.1.2, in which unprivileged users can read the password hashes of arbitrary accounts. Affects django versions >= 2.1, < 2.1.2. Fixed in 2.1.2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Django is a popular Python web framework that provides a set of tools and libraries for building web applications. It includes features such as an ORM (Object-Relational Mapping) for database management, a templating engine, and an authentication system. This vulnerability affects Django versions before 2.1.2 and specifically impacts the password hash obfuscation mechanism used in the Django Admin interface. The vulnerability allows unprivileged users with only the 'view' permission to read the password hashes of arbitrary accounts, potentially exposing sensitive information.

Vulnerability Detail

The issue arises from a bypass in the read-only password widget used by Django Admin. This widget is designed to display an obfuscated password hash, but it fails to properly enforce access restrictions for users with limited permissions. As a result, users with only the 'view' permission can see the complete password hash, which can be a security risk for sites that use insecure password hashing algorithms. This vulnerability poses a threat to sites with legacy user accounts that may have been stored using weak or outdated hashing methods.

How To Fix

Latest published version: 6.1.2 as of 22 Oct 2026

pip install --upgrade "django==6.1.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.1.2

This is the first release that contains the fix.

pip install --upgrade "django==2.1.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of Django to address the issue.

Conclusion

The vulnerability in Django versions before 2.1.2 allows unprivileged users to view complete password hashes, potentially compromising user accounts. It is crucial to upgrade to the fixed version of Django to address this issue and ensure the protection of sensitive user information. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for django →

Share this vulnerability

FAQ

The vulnerability allows unprivileged users to view the complete password hashes of user accounts, which can lead to unauthorized access if the hashes are cracked or if weak hashing algorithms were used.

Sites using Django versions before 2.1.2 are affected. Specifically, sites with legacy user accounts that may have been stored using insecure password hashing methods are at higher risk.

There are no known public exploits for this vulnerability at the time of this report. However, it is crucial to address the issue promptly by upgrading to the fixed version of Django.

No, the vulnerability is not related to access control settings. It is a flaw in the read-only password widget used by Django Admin, which fails to properly enforce access restrictions based on user permissions.

You can use Vulert's vulnerability monitoring service to check if your application is affected by this vulnerability. Vulert analyzes your Pipfile.lock and provides real-time alerts for open-source vulnerabilities, including this Django vulnerability. Visit Vulert Scanner for more information.

Related vulnerabilities

Recent vulnerabilities recorded for django.

How To Fix

Latest published version: 6.1.2 as of 22 Oct 2026

pip install --upgrade "django==6.1.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.1.2

This is the first release that contains the fix.

pip install --upgrade "django==2.1.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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