CVE-2019-6975: Django Uncontrolled Memory Consumption Vulnerability

HIGH
Advisory Identifier: GHSA-wh4h-v3f2-r2pp
CVSS 7.5
CWE-770
Published
Advisory Summary

CVE-2019-6975 is a HIGH (CVSS 7.5) uncontrolled memory consumption vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Django libraries in the PyPI ecosystem. The issue involves uncontrolled memory consumption in django. Remediation is available by upgrading affected packages to version 1.11.19, 2.0.11, 2.1.6.

CVE-2019-6975 at a Glance

CVE Identifier CVE-2019-6975
GHSA Identifier GHSA-wh4h-v3f2-r2pp
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Django
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix CVE-2019-6975

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.11.19
pip install Django>=1.11.19
Django fixed: 2.0.11
pip install Django>=2.0.11
Django fixed: 2.1.6
pip install Django>=2.1.6
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-2019-6975, 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.11.19), 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. 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

Django 1.11.x before 1.11.19, 2.0.x before 2.0.11, and 2.1.x before 2.1.6 allows Uncontrolled Memory Consumption via a malicious attacker-supplied value to the `django.utils.numberformat.format()` function.

CVE-2019-6975 Affected Django Versions

3 component(s)
Fixed Versions:
1.11.192.0.112.1.6
Product / Package Ecosystem Affected Versions Fixed Version
Django
PyPI
≥ 1.11
< 1.11.19
1.11.19
Django
PyPI
≥ 2.0
< 2.0.11
2.0.11
Django
PyPI
≥ 2.1
< 2.1.6
2.1.6

References

NVD — CVE-2019-6975 NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-6975
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/0bbb560183fabf0533289700845dafa94951f227
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/1f42f82566c9d2d73aff1c42790d6b1b243f7676
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/40cd19055773705301c3428ed5e08a036d2091f3
Django Security Information SECURITY
https://www.openwall.com/lists/oss-security/2019/02/11/1
Django Release RELEASE
https://www.djangoproject.com/weblog/2019/feb/11/security-releases
Django Security Information SECURITY
https://www.debian.org/security/2019/dsa-4476
Django Security Information SECURITY
https://web.archive.org/web/20200227084713/http://www.securityfocus.com/bid/106964
usn.ubuntu.com/3890-1 WEB
https://usn.ubuntu.com/3890-1
seclists.org/bugtraq/2019/jul/10 WEB
https://seclists.org/bugtraq/2019/Jul/10
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HVXDOVCXLD74SHR2BENGCE2OOYYYWJHZ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66WMXHGBXD7GSM3PEXVCMCAGLMQYHZCU
groups.google.com/forum/ WEB
https://groups.google.com/forum/#!topic/django-announce/WTwEAprR0IQ
Django Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-18.yaml
Django Source Repository REPOSITORY
https://github.com/django/django
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-wh4h-v3f2-r2pp
Django Release RELEASE
https://docs.djangoproject.com/en/dev/releases/security

Frequently Asked Questions

What is CVE-2019-6975?
CVE-2019-6975 is a security vulnerability in Django involving Uncontrolled Memory Consumption in Django under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Django versions are affected?
Affected versions include releases prior to 1.11.19, 2.0.11, 2.1.6 across affected packages: Django.
What version fixes CVE-2019-6975?
Upgrading to 1.11.19, 2.0.11, 2.1.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Django affected?
Yes, Django is affected in releases prior to 1.11.19, 2.0.11, 2.1.6. Upgrade your dependency to 1.11.19, 2.0.11, 2.1.6 or later.
What is the CVSS score of CVE-2019-6975?
CVE-2019-6975 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2019-6975?
CVE-2019-6975 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check PyPI dependencies for CVE-2019-6975?
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-wh4h-v3f2-r2pp",
  "modified" : "2024-09-20T15:27:25Z",
  "published" : "2019-02-12T15:36:37Z",
  "aliases" : [ "CVE-2019-6975" ],
  "summary" : "Uncontrolled Memory Consumption in Django",
  "details" : "Django 1.11.x before 1.11.19, 2.0.x before 2.0.11, and 2.1.x before 2.1.6 allows Uncontrolled Memory Consumption via a malicious attacker-supplied value to the `django.utils.numberformat.format()` function.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.11"
      }, {
        "fixed" : "1.11.19"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0"
      }, {
        "fixed" : "2.0.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1"
      }, {
        "fixed" : "2.1.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-6975"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/0bbb560183fabf0533289700845dafa94951f227"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/1f42f82566c9d2d73aff1c42790d6b1b243f7676"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/40cd19055773705301c3428ed5e08a036d2091f3"
  }, {
    "type" : "WEB",
    "url" : "https://www.openwall.com/lists/oss-security/2019/02/11/1"
  }, {
    "type" : "WEB",
    "url" : "https://www.djangoproject.com/weblog/2019/feb/11/security-releases"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2019/dsa-4476"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200227084713/http://www.securityfocus.com/bid/106964"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3890-1"
  }, {
    "type" : "WEB",
    "url" : "https://seclists.org/bugtraq/2019/Jul/10"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HVXDOVCXLD74SHR2BENGCE2OOYYYWJHZ"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66WMXHGBXD7GSM3PEXVCMCAGLMQYHZCU"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#!topic/django-announce/WTwEAprR0IQ"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-18.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/django/django"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-wh4h-v3f2-r2pp"
  }, {
    "type" : "WEB",
    "url" : "https://docs.djangoproject.com/en/dev/releases/security"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T22:00:35Z",
    "nvd_published_at" : null
  }
}