CVE-2015-5144: Django Django Vulnerable To HTTP Response Vulnerability

HIGH
Advisory Identifier: GHSA-q5qw-4364-5hhm
CVSS 7.5
CWE-20
Published
Advisory Summary

CVE-2015-5144 is a HIGH (CVSS 7.5) django vulnerable to http response vulnerability (CWE-20: Improper Input Validation) affecting Django libraries in the PyPI ecosystem. The issue involves django vulnerable to http response splitting attack. Remediation is available by upgrading affected packages to version 1.4.21, 1.7.9, 1.8.3.

CVE-2015-5144 at a Glance

CVE Identifier CVE-2015-5144
GHSA Identifier GHSA-q5qw-4364-5hhm
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
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:H/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 High (I:H)
Availability None (A:N)

How to Fix CVE-2015-5144

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.21
pip install Django>=1.4.21
Django fixed: 1.7.9
pip install Django>=1.7.9
Django fixed: 1.8.3
pip install Django>=1.8.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-5144, 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.21), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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.21, 1.5.x through 1.6.x, 1.7.x before 1.7.9, and 1.8.x before 1.8.3 uses an incorrect regular expression, which allows remote attackers to inject arbitrary headers and conduct HTTP response splitting attacks via a newline character in an (1) email message to the EmailValidator, a (2) URL to the URLValidator, or unspecified vectors to the (3) validate_ipv4_address or (4) validate_slug validator.

CVE-2015-5144 Affected Django Versions

3 component(s)
Fixed Versions:
1.4.211.7.91.8.3
Product / Package Ecosystem Affected Versions Fixed Version
Django
PyPI
< 1.4.21
1.4.21
Django
PyPI
≥ 1.5
< 1.7.9
1.7.9
Django
PyPI
≥ 1.8a1
< 1.8.3
1.8.3

References

NVD — CVE-2015-5144 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-5144
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/1ba1cdce7d58e6740fe51955d945b56ae51d072a
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/574dd5e0b0fbb877ae5827b1603d298edc9bb2a0
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/8f9a4d3a2bc42f14bb437defd30c7315adbff22c
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/ae49b4d994656bc037513dcd064cb9ce5bb85649
Django Source Repository REPOSITORY
https://github.com/django/django
Django Release RELEASE
https://github.com/django/django/blob/4555a823fd57e261e1b19c778429473256c8ea08/docs/releases/1.4.21.txt#L30-L54
Django Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-10.yaml
Django Security Information SECURITY
https://security.gentoo.org/glsa/201510-06
Django Security Information SECURITY
https://web.archive.org/web/20150924150801/http://www.securitytracker.com/id/1032820
Django Security Information SECURITY
https://web.archive.org/web/20200228050526/http://www.securityfocus.com/bid/75665
Django Release RELEASE
https://www.djangoproject.com/weblog/2015/jul/08/security-releases
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2015-November/172084.html
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2015-10/msg00043.html
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2015-10/msg00046.html
Django Security Information SECURITY
http://www.debian.org/security/2015/dsa-3305
Django Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html
www.ubuntu.com/usn/usn-2671-1 WEB
http://www.ubuntu.com/usn/USN-2671-1

Frequently Asked Questions

What is CVE-2015-5144?
CVE-2015-5144 is a security vulnerability in Django involving Django Vulnerable to HTTP Response Splitting Attack under CWE-20: Improper Input Validation.
Which Django versions are affected?
Affected versions include releases prior to 1.4.21, 1.7.9, 1.8.3 across affected packages: Django.
What version fixes CVE-2015-5144?
Upgrading to 1.4.21, 1.7.9, 1.8.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.21, 1.7.9, 1.8.3. Upgrade your dependency to 1.4.21, 1.7.9, 1.8.3 or later.
What is the CVSS score of CVE-2015-5144?
CVE-2015-5144 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:H/A:N.
What CWE is associated with CVE-2015-5144?
CVE-2015-5144 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check PyPI dependencies for CVE-2015-5144?
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-q5qw-4364-5hhm",
  "modified" : "2024-09-18T16:19:04Z",
  "published" : "2022-05-17T00:48:30Z",
  "aliases" : [ "CVE-2015-5144" ],
  "summary" : "Django Vulnerable to HTTP Response Splitting Attack",
  "details" : "Django before 1.4.21, 1.5.x through 1.6.x, 1.7.x before 1.7.9, and 1.8.x before 1.8.3 uses an incorrect regular expression, which allows remote attackers to inject arbitrary headers and conduct HTTP response splitting attacks via a newline character in an (1) email message to the EmailValidator, a (2) URL to the URLValidator, or unspecified vectors to the (3) validate_ipv4_address or (4) validate_slug validator.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.21"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.5"
      }, {
        "fixed" : "1.7.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.8a1"
      }, {
        "fixed" : "1.8.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-5144"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/1ba1cdce7d58e6740fe51955d945b56ae51d072a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/574dd5e0b0fbb877ae5827b1603d298edc9bb2a0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/8f9a4d3a2bc42f14bb437defd30c7315adbff22c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/ae49b4d994656bc037513dcd064cb9ce5bb85649"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/blob/4555a823fd57e261e1b19c778429473256c8ea08/docs/releases/1.4.21.txt#L30-L54"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-10.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/201510-06"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20150924150801/http://www.securitytracker.com/id/1032820"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228050526/http://www.securityfocus.com/bid/75665"
  }, {
    "type" : "WEB",
    "url" : "https://www.djangoproject.com/weblog/2015/jul/08/security-releases"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-November/172084.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2015-10/msg00043.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2015-10/msg00046.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2015/dsa-3305"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2671-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-04T23:22:57Z",
    "nvd_published_at" : "2015-07-14T17:59:00Z"
  }
}