Skip to main content
← Vulnerabilities

Password hash disclosure to "view only" admin users with custom user models

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

2.2LowCNA
Exploited
No known exploitation
Fix
Fixed in 6.1.3, 6.0.10
Who is exposed
Not reported

Do first: Upgrade to a fixed version: 6.1.3, 6.0.10.

Published
Last modified
Published
Not listed in CISA KEV
25/100 · provisional
Fix
Fixed in 6.1.3, 6.0.10
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Django, the Python web framework, is affected, specifically versions 6.1 before 6.1.3 and 6.0 before 6.0.10, along with possibly older unsupported releases. The flaw can let staff users who only have view permission on a custom user model see full password hashes in the admin's read-only change form.

Read the original description

An issue was discovered in Django 6.1 before 6.1.3 and 6.0 before 6.0.10. The `django.contrib.admin.utils.display_for_field()` function did not obfuscate the password field of user models other than `AUTH_USER_MODEL`, or of an `AUTH_USER_MODEL` inheriting its password field from a concrete parent model through multi-table inheritance, which allows authenticated staff users with only the view permission on such a model to obtain full password hashes via the read-only change form. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank Aaron chen for reporting this issue.

Impact

  • Widely used

    django has 11.9m weekly downloads.Source: pypistats.org

    12.1k packages depend on django.Source: deps.dev

What to do

  • Upgrade to a fixed version: 6.1.3, 6.0.10.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • djangoPyPI

    From 6.1 · fixed in 6.1.3; From 6.0 · fixed in 6.0.10

Evidence 6

  1. Advisory
  2. Advisory
  3. Patch
  4. Patch
  5. Patch
  6. Link

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.