CVE-2016-2513: Django Django User Enumeration Vulnerability Vulnerability

LOW
Advisory Identifier: GHSA-fp6p-5xvw-m74f
CVSS 3.1
CWE-200
Published
Advisory Summary

CVE-2016-2513 is a LOW (CVSS 3.1) django user enumeration vulnerability vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Django libraries in the PyPI ecosystem. The issue involves django user enumeration vulnerability. Remediation is available by upgrading affected packages to version 1.8.10, 1.9.3.

CVE-2016-2513 at a Glance

CVE Identifier CVE-2016-2513
GHSA Identifier GHSA-fp6p-5xvw-m74f
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Django
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 3.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2016-2513

To remediate this vulnerability, upgrade all affected Django dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Django fixed: 1.8.10
pip install Django>=1.8.10
Django fixed: 1.9.3
pip install Django>=1.9.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show Django

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2016-2513, inspect your installed packages using pip:

pip show Django

Analyze the terminal output to locate any version of Django in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.10), your application is affected.

Note: The pip show Django command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Django, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The password hasher in `contrib/auth/hashers.py` in Django before 1.8.10 and 1.9.x before 1.9.3 allows remote attackers to enumerate users via a timing attack involving login requests.

CVE-2016-2513 Affected Django Versions

2 component(s)
Fixed Versions:
1.8.101.9.3
Product / Package Ecosystem Affected Versions Fixed Version
Django
PyPI
< 1.8.10
1.8.10
Django
PyPI
≥ 1.9
< 1.9.3
1.9.3

References

Django Release RELEASE
https://www.djangoproject.com/weblog/2016/mar/01/security-releases
rhn.redhat.com/errata/rhsa-2016-05... WEB
http://rhn.redhat.com/errata/RHSA-2016-0502.html
rhn.redhat.com/errata/rhsa-2016-05... WEB
http://rhn.redhat.com/errata/RHSA-2016-0504.html
rhn.redhat.com/errata/rhsa-2016-05... WEB
http://rhn.redhat.com/errata/RHSA-2016-0505.html
rhn.redhat.com/errata/rhsa-2016-05... WEB
http://rhn.redhat.com/errata/RHSA-2016-0506.html
NVD — CVE-2016-2513 NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-2513
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/67b46ba7016da2d259c1ecc7d666d11f5e1cfaab
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/af7d09b0c5c6ab68e629fd9baf736f9dd203b18e
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/f4e6e02f7713a6924d16540be279909ff4091eb6
Django Source Repository REPOSITORY
https://github.com/django/django
Django Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-16.yaml
Django Security Information SECURITY
https://web.archive.org/web/20160322001143/http://www.securitytracker.com/id/1035152
Django Security Information SECURITY
https://web.archive.org/web/20200228001222/http://www.securityfocus.com/bid/83878
Django Security Information SECURITY
http://www.debian.org/security/2016/dsa-3544
Django Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
www.ubuntu.com/usn/usn-2915-1 WEB
http://www.ubuntu.com/usn/USN-2915-1
www.ubuntu.com/usn/usn-2915-2 WEB
http://www.ubuntu.com/usn/USN-2915-2
www.ubuntu.com/usn/usn-2915-3 WEB
http://www.ubuntu.com/usn/USN-2915-3

Frequently Asked Questions

What is CVE-2016-2513?
CVE-2016-2513 is a security vulnerability in Django involving Django User Enumeration Vulnerability under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Django versions are affected?
Affected versions include releases prior to 1.8.10, 1.9.3 across affected packages: Django.
What version fixes CVE-2016-2513?
Upgrading to 1.8.10, 1.9.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Django affected?
Yes, Django is affected in releases prior to 1.8.10, 1.9.3. Upgrade your dependency to 1.8.10, 1.9.3 or later.
What is the CVSS score of CVE-2016-2513?
CVE-2016-2513 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2016-2513?
CVE-2016-2513 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2016-2513?
Run the dependency tree command: 'pip show Django'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fp6p-5xvw-m74f",
  "modified" : "2024-09-18T14:35:47Z",
  "published" : "2022-05-17T01:09:58Z",
  "aliases" : [ "CVE-2016-2513" ],
  "summary" : "Django User Enumeration Vulnerability",
  "details" : "The password hasher in `contrib/auth/hashers.py` in Django before 1.8.10 and 1.9.x before 1.9.3 allows remote attackers to enumerate users via a timing attack involving login requests.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.8.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.9"
      }, {
        "fixed" : "1.9.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-2513"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/67b46ba7016da2d259c1ecc7d666d11f5e1cfaab"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/af7d09b0c5c6ab68e629fd9baf736f9dd203b18e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/f4e6e02f7713a6924d16540be279909ff4091eb6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/django/django"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-16.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20160322001143/http://www.securitytracker.com/id/1035152"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228001222/http://www.securityfocus.com/bid/83878"
  }, {
    "type" : "WEB",
    "url" : "https://www.djangoproject.com/weblog/2016/mar/01/security-releases"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-0502.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-0504.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-0505.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-0506.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2016/dsa-3544"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2915-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2915-2"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2915-3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-31T22:16:33Z",
    "nvd_published_at" : "2016-04-08T15:59:00Z"
  }
}