Summary
This update for python-Django fixes the following issues:
- CVE-2022-41323: Fixed potential denial-of-service vulnerability in internationalized URLs (boo#1203793)
- CVE-2022-36359: Fixed a potential reflected file download vulnerability in FileResponse (boo#1201923)
- Update from 2.2.12 to 2.2.28 (boo#1198297)
* Many CVEs fixes (check https://github.com/django/django/blob/main/docs/releases/)
2.2.28:
- CVE-2022-28346: Fixed potential SQL injection in QuerySet.annotate(), aggregate(), and extra() (bsc#1198398)
- CVE-2022-28347: Fixed potential SQL injection via QuerySet.explain(**options) (bsc#1198399)
2.2.27:
- CVE-2022-22818: Fixed possible XSS via ``{% debug %}`` template tag (bsc#1195086)
- CVE-2022-23833: Fixed denial-of-service possibility in file uploads (bsc#1195088)
2.2.26:
- CVE-2021-45115: Denial-of-service possibility in ``UserAttributeSimilarityValidator`` (bsc#1194115)
- CVE-2021-45116: Potential information disclosure in ``dictsort`` template filter (bsc#1194117)
- CVE-2021-45452: Potential directory-traversal via ``Storage.save()`` (bsc#)
2.2.25:
- CVE-2021-44420: Potential bypass of an upstream access control based on URL paths (bsc#1193240)
2.2.24:
- CVE-2021-33203: Potential directory traversal via ``admindocs``
- CVE-2021-33571: Possible indeterminate SSRF, RFI, and LFI attacks since validators accepted leading zeros in IPv4 addresses
2.2.23:
- regression fix
2.2.22:
- CVE-2021-32052: Header injection possibility since ``URLValidator`` accepted newlines in input on Python 3.9.5+
Fixed packages 2
| Release | Package | Fixed in |
|---|---|---|
| openSUSE · Leap 15.3 | python-Django | 2.2.28-bp153.2.3.1 |
| SUSE · Package Hub 15 SP3 | python-Django | 2.2.28-bp153.2.3.1 |
Vulnerabilities 13
-
Critical 9.8
SQL Injection in Django
An issue was discovered in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. QuerySet.annotate(), aggregate(), and extra() methods are subject to SQL injection in column aliases via a crafted dictionary (with dictionary expansion) as the pass…
-
Critical 9.8
SQL Injection in Django
A SQL injection issue was discovered in QuerySet.explain() in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. This occurs by passing a crafted dictionary (with dictionary expansion) as the **options argument, and placing the injection paylo…
-
High 8.8
Django vulnerable to Reflected File Download attack
An issue was discovered in the HTTP FileResponse class in Django 3.2 before 3.2.15 and 4.0 before 4.0.7. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a FileResponse when the filename is der…
-
High 7.5
Django Access Control Bypass possibly leading to SSRF, RFI, and LFI attacks
In Django 2.2 before 2.2.24, 3.x before 3.1.12, and 3.2 before 3.2.4, URLValidator, validate_ipv4_address, and validate_ipv46_address do not prohibit leading zero characters in octal literals. This may allow a bypass of access control that is based on IP addr…
-
High 7.5
Denial-of-service in Django
An issue was discovered in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1. UserAttributeSimilarityValidator incurred significant overhead in evaluating a submitted password that was artificially large in relation to the comparison values. I…
-
High 7.5
Information disclosure in Django
An issue was discovered in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1. Due to leveraging the Django Template Language's variable resolution logic, the dictsort template filter was potentially vulnerable to information disclosure, or an …
-
High 7.5CVE-2022-23833 EPSS 50%
Infinite Loop in Django
An issue was discovered in MultiPartParser in Django 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2. Passing certain inputs to multipart forms could result in an infinite loop when parsing files.
-
High 7.5
Django denial-of-service vulnerability in internationalized URLs
In Django 3.2 before 3.2.16, 4.0 before 4.0.8, and 4.1 before 4.1.2, internationalized URLs were subject to a potential denial of service attack via the locale parameter, which is treated as a regular expression.
-
High 7.3
Potential bypass of an upstream access control based on URL paths in Django
In Django 2.2 before 2.2.25, 3.1 before 3.1.14, and 3.2 before 3.2.10, HTTP requests for URLs with trailing newlines could bypass upstream access control based on URL paths.
-
Medium 6.1
Header injection possible in Django
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 injec…
-
Medium 6.1CVE-2022-22818 Public exploit
Cross-site Scripting in Django
The {% debug %} template tag in Django 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2 does not properly encode the current context. This may lead to XSS.
-
Medium 5.3
Directory-traversal in Django
Storage.save in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1 allows directory traversal if crafted filenames are directly passed to it.
-
Medium 4.9
Path Traversal in Django
Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a potential directory traversal via django.contrib.admindocs. Staff members could use the TemplateDetailView view to check the existence of arbitrary files. Additionally, if (and only if) the…
References
-
report
https://bugzilla.suse.com/1185713
-
report
https://bugzilla.suse.com/1186608
-
report
https://bugzilla.suse.com/1186611
-
report
https://bugzilla.suse.com/1193240
-
report
https://bugzilla.suse.com/1194115
-
report
https://bugzilla.suse.com/1194116
-
report
https://bugzilla.suse.com/1194117
-
report
https://bugzilla.suse.com/1195086
-
report
https://bugzilla.suse.com/1195088
-
report
https://bugzilla.suse.com/1198297
-
report
https://bugzilla.suse.com/1198398
-
report
https://bugzilla.suse.com/1198399
-
report
https://bugzilla.suse.com/1201923
-
report
https://bugzilla.suse.com/1203793
-
web
https://www.suse.com/security/cve/CVE-2021-32052
-
web
https://www.suse.com/security/cve/CVE-2021-33203
-
web
https://www.suse.com/security/cve/CVE-2021-33571
-
web
https://www.suse.com/security/cve/CVE-2021-44420
-
web
https://www.suse.com/security/cve/CVE-2021-45115
-
web
https://www.suse.com/security/cve/CVE-2021-45116
-
web
https://www.suse.com/security/cve/CVE-2021-45452
-
web
https://www.suse.com/security/cve/CVE-2022-22818
-
web
https://www.suse.com/security/cve/CVE-2022-23833
-
web
https://www.suse.com/security/cve/CVE-2022-28346
-
web
https://www.suse.com/security/cve/CVE-2022-28347
-
web
https://www.suse.com/security/cve/CVE-2022-36359
-
web
https://www.suse.com/security/cve/CVE-2022-41323