GHSA-qm57-vhq3-3fwf
Vulnerability from github
Published
2021-06-09 17:14
Modified
2024-09-20 15:28
Severity ?
6.1 (Medium) - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
5.3 (Medium) - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
5.3 (Medium) - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Summary
Header injection possible in Django
Details
In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). If an application uses values with newlines in an HTTP response, header injection can occur. Django itself is unaffected because HttpResponse prohibits newlines in HTTP headers.
{ "affected": [ { "package": { "ecosystem": "PyPI", "name": "Django" }, "ranges": [ { "events": [ { "introduced": "2.2" }, { "fixed": "2.2.22" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "PyPI", "name": "Django" }, "ranges": [ { "events": [ { "introduced": "3.1" }, { "fixed": "3.1.10" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "PyPI", "name": "Django" }, "ranges": [ { "events": [ { "introduced": "3.2" }, { "fixed": "3.2.2" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2021-32052" ], "database_specific": { "cwe_ids": [ "CWE-79", "CWE-88" ], "github_reviewed": true, "github_reviewed_at": "2021-05-19T18:12:45Z", "nvd_published_at": "2021-05-06T16:15:00Z", "severity": "MODERATE" }, "details": "In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). If an application uses values with newlines in an HTTP response, header injection can occur. Django itself is unaffected because HttpResponse prohibits newlines in HTTP headers.", "id": "GHSA-qm57-vhq3-3fwf", "modified": "2024-09-20T15:28:25Z", "published": "2021-06-09T17:14:51Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-32052" }, { "type": "WEB", "url": "https://github.com/django/django/commit/e1e81aa1c4427411e3c68facdd761229ffea6f6f" }, { "type": "WEB", "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1944801" }, { "type": "WEB", "url": "https://docs.djangoproject.com/en/3.2/releases/security" }, { "type": "ADVISORY", "url": "https://github.com/advisories/GHSA-qm57-vhq3-3fwf" }, { "type": "PACKAGE", "url": "https://github.com/django/django" }, { "type": "WEB", "url": "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-8.yaml" }, { "type": "WEB", "url": "https://groups.google.com/forum/#!forum/django-announce" }, { "type": "WEB", "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE" }, { "type": "WEB", "url": "https://security.netapp.com/advisory/ntap-20210611-0002" }, { "type": "WEB", "url": "https://www.djangoproject.com/weblog/2021/may/06/security-releases" }, { "type": "WEB", "url": "http://www.openwall.com/lists/oss-security/2021/05/06/1" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "type": "CVSS_V3" }, { "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N", "type": "CVSS_V4" } ], "summary": "Header injection possible in Django" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.