CVE-2015-0222: Django Django Database Denial-of-service With ModelMultipleChoiceField Vulnerability

HIGH
Advisory Identifier: GHSA-6g95-x6cj-mg4v
CVSS 7.5
CWE-770
Published
Advisory Summary

CVE-2015-0222 is a HIGH (CVSS 7.5) django database denial-of-service with modelmultiplechoicefield vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Django libraries in the PyPI ecosystem. The issue involves django database denial-of-service with modelmultiplechoicefield. Remediation is available by upgrading affected packages to version 1.6.10, 1.7.3.

CVE-2015-0222 at a Glance

CVE Identifier CVE-2015-0222
GHSA Identifier GHSA-6g95-x6cj-mg4v
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.1/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-2015-0222

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.6.10
pip install Django>=1.6.10
Django fixed: 1.7.3
pip install Django>=1.7.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-2015-0222, 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.6.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-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

ModelMultipleChoiceField in Django 1.6.x before 1.6.10 and 1.7.x before 1.7.3, when show_hidden_initial is set to True, allows remote attackers to cause a denial of service by submitting duplicate values, which triggers a large number of SQL queries.

CVE-2015-0222 Affected Django Versions

2 component(s)
Fixed Versions:
1.6.101.7.3
Product / Package Ecosystem Affected Versions Fixed Version
Django
PyPI
≥ 1.6
< 1.6.10
1.6.10
Django
PyPI
≥ 1.7
< 1.7.3
1.7.3

References

NVD — CVE-2015-0222 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-0222
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/bcfb47780ce7caecb409a9e9c1c314266e41d392
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/d7a06ee7e571b6dad07c0f5b519b1db02e2a476c
Django Source Repository REPOSITORY
https://github.com/django/django
Django Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-7.yaml
web.archive.org/web/20161201073154/... WEB
https://web.archive.org/web/20161201073154/http://secunia.com/advisories/62285
web.archive.org/web/20161201073337/... WEB
https://web.archive.org/web/20161201073337/http://secunia.com/advisories/62309
Django Security Information SECURITY
https://www.djangoproject.com/weblog/2015/jan/13/security
advisories.mageia.org/mgasa-2015-0026.htm... WEB
http://advisories.mageia.org/MGASA-2015-0026.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148485.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148608.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148696.html
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2015-04/msg00001.html
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2015-09/msg00035.html
ubuntu.com/usn/usn-2469-1 WEB
http://ubuntu.com/usn/usn-2469-1
Django Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2015:109

Frequently Asked Questions

What is CVE-2015-0222?
CVE-2015-0222 is a security vulnerability in Django involving Django database denial-of-service with ModelMultipleChoiceField under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Django versions are affected?
Affected versions include releases prior to 1.6.10, 1.7.3 across affected packages: Django.
What version fixes CVE-2015-0222?
Upgrading to 1.6.10, 1.7.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.6.10, 1.7.3. Upgrade your dependency to 1.6.10, 1.7.3 or later.
What is the CVSS score of CVE-2015-0222?
CVE-2015-0222 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2015-0222?
CVE-2015-0222 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-2015-0222?
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-6g95-x6cj-mg4v",
  "modified" : "2024-09-18T19:57:21Z",
  "published" : "2022-05-17T03:20:50Z",
  "aliases" : [ "CVE-2015-0222" ],
  "summary" : "Django database denial-of-service with ModelMultipleChoiceField",
  "details" : "ModelMultipleChoiceField in Django 1.6.x before 1.6.10 and 1.7.x before 1.7.3, when show_hidden_initial is set to True, allows remote attackers to cause a denial of service by submitting duplicate values, which triggers a large number of SQL queries.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.6"
      }, {
        "fixed" : "1.6.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7"
      }, {
        "fixed" : "1.7.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-0222"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/bcfb47780ce7caecb409a9e9c1c314266e41d392"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/d7a06ee7e571b6dad07c0f5b519b1db02e2a476c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/django/django"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-7.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20161201073154/http://secunia.com/advisories/62285"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20161201073337/http://secunia.com/advisories/62309"
  }, {
    "type" : "WEB",
    "url" : "https://www.djangoproject.com/weblog/2015/jan/13/security"
  }, {
    "type" : "WEB",
    "url" : "http://advisories.mageia.org/MGASA-2015-0026.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148485.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148608.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148696.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2015-04/msg00001.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2015-09/msg00035.html"
  }, {
    "type" : "WEB",
    "url" : "http://ubuntu.com/usn/usn-2469-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2015:109"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-29T16:34:17Z",
    "nvd_published_at" : "2015-01-16T16:59:00Z"
  }
}