CVE-2015-0219: Django Django WSGI Header Spoofing Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-7qfw-j7hp-v45g
CVSS 5.3
CWE-290
Published
Advisory Summary

CVE-2015-0219 is a MODERATE (CVSS 5.3) django wsgi header spoofing vulnerability vulnerability (CWE-290: Authentication Bypass by Spoofing) affecting Django libraries in the PyPI ecosystem. The issue involves django wsgi header spoofing vulnerability. Remediation is available by upgrading affected packages to version 1.4.18, 1.6.10, 1.7.3.

CVE-2015-0219 at a Glance

CVE Identifier CVE-2015-0219
GHSA Identifier GHSA-7qfw-j7hp-v45g
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-290: Authentication Bypass by Spoofing
Affected Product Django
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:L/A:N).

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 Low (I:L)
Availability None (A:N)

How to Fix CVE-2015-0219

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.4.18
pip install Django>=1.4.18
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-0219, 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.4.18), 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-290: Authentication Bypass by Spoofing, where this attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks. 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 before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3 allows remote attackers to spoof WSGI headers by using an `_` (underscore) character instead of a `-` (dash) character in an HTTP header, as demonstrated by an `X-Auth_User` header.

CVE-2015-0219 Affected Django Versions

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

References

NVD — CVE-2015-0219 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-0219
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/41b4bc73ee0da7b2e09f4af47fc1fd21144c710f
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/4f6fffc1dc429f1ad428ecf8e6620739e8837450
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/d7597b31d5c03106eeba4be14a33b32a5e25f4ee
Django Source Repository REPOSITORY
https://github.com/django/daphne/blob/e49c39a4e5fac8ec170dd653641a9e90844fd3f1/daphne/http_protocol.py#L151
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-4.yaml
web.archive.org/web/20150128111656/... WEB
https://web.archive.org/web/20150128111656/http://secunia.com/advisories/62285
web.archive.org/web/20150128111656/... WEB
https://web.archive.org/web/20150128111656/http://secunia.com/advisories/62309
Django Security Information SECURITY
https://web.archive.org/web/20150523054951/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:109/?name=MDVSA-2015:109
Django Security Information SECURITY
https://web.archive.org/web/20150523054953/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:036/?name=MDVSA-2015:036
web.archive.org/web/20151104201446/... WEB
https://web.archive.org/web/20151104201446/http://secunia.com/advisories/62718
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
www.ubuntu.com/usn/usn-2469-1 WEB
http://www.ubuntu.com/usn/USN-2469-1

Frequently Asked Questions

What is CVE-2015-0219?
CVE-2015-0219 is a security vulnerability in Django involving Django WSGI Header Spoofing Vulnerability under CWE-290: Authentication Bypass by Spoofing.
Which Django versions are affected?
Affected versions include releases prior to 1.4.18, 1.6.10, 1.7.3 across affected packages: Django.
What version fixes CVE-2015-0219?
Upgrading to 1.4.18, 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.4.18, 1.6.10, 1.7.3. Upgrade your dependency to 1.4.18, 1.6.10, 1.7.3 or later.
What is the CVSS score of CVE-2015-0219?
CVE-2015-0219 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2015-0219?
CVE-2015-0219 is classified under CWE-290: Authentication Bypass by Spoofing (This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.).
How can I check PyPI dependencies for CVE-2015-0219?
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-7qfw-j7hp-v45g",
  "modified" : "2024-09-18T14:42:11Z",
  "published" : "2022-05-17T03:20:54Z",
  "aliases" : [ "CVE-2015-0219" ],
  "summary" : "Django WSGI Header Spoofing Vulnerability",
  "details" : "Django before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3 allows remote attackers to spoof WSGI headers by using an `_` (underscore) character instead of a `-` (dash) character in an HTTP header, as demonstrated by an `X-Auth_User` header.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.18"
      } ]
    } ]
  }, {
    "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-0219"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/41b4bc73ee0da7b2e09f4af47fc1fd21144c710f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/4f6fffc1dc429f1ad428ecf8e6620739e8837450"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/d7597b31d5c03106eeba4be14a33b32a5e25f4ee"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/daphne/blob/e49c39a4e5fac8ec170dd653641a9e90844fd3f1/daphne/http_protocol.py#L151"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/django/django"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-4.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20150128111656/http://secunia.com/advisories/62285"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20150128111656/http://secunia.com/advisories/62309"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20150523054951/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:109/?name=MDVSA-2015:109"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20150523054953/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:036/?name=MDVSA-2015:036"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20151104201446/http://secunia.com/advisories/62718"
  }, {
    "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://www.ubuntu.com/usn/USN-2469-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-290" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-03T21:12:36Z",
    "nvd_published_at" : "2015-01-16T16:59:00Z"
  }
}