Python/django/4.0.2


A high-level Python web framework that encourages rapid development and clean, pragmatic design.

https://pypi.org/project/django
BSD-3-Clause AND BSD

4 Security Vulnerabilities

Django has regular expression denial of service vulnerability in EmailValidator/URLValidator

Published date: 2023-07-03T15:30:45Z
CVE: CVE-2023-36053
Links:

In Django 3.2 before 3.2.20, 4 before 4.1.10, and 4.2 before 4.2.3, EmailValidator and URLValidator are subject to a potential ReDoS (regular expression denial of service) attack via a very large number of domain name labels of emails and URLs.

Affected versions: ["3.2", "3.2.1", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6", "3.2.7", "3.2.8", "3.2.9", "3.2.10", "3.2.11", "3.2.12", "3.2.13", "3.2.14", "3.2.15", "3.2.16", "3.2.17", "3.2.18", "3.2.19", "4.0", "4.0.1", "4.0.2", "4.0.3", "4.0.4", "4.1a1", "4.0.5", "4.1b1", "4.0.6", "4.1rc1", "4.0.7", "4.1", "4.1.1", "4.0.8", "4.1.2", "4.1.3", "4.1.4", "4.1.5", "4.0.9", "4.1.6", "4.0.10", "4.1.7", "4.1.8", "4.1.9", "4.2", "4.2.1", "4.2.2"]
Secure versions: [2.2.27, 2.2.28, 3.0a1, 3.1.12, 3.1.13, 3.1.14, 3.2.25, 4.1.13, 4.2.17, 4.2.18, 4.2.19, 4.2.20, 4.2.21, 4.2.22, 4.2.23, 4.2a1, 4.2b1, 4.2rc1, 5.0.10, 5.0.11, 5.0.12, 5.0.13, 5.0.14, 5.0a1, 5.0b1, 5.0rc1, 5.1.10, 5.1.11, 5.1.4, 5.1.5, 5.1.6, 5.1.7, 5.1.8, 5.1.9, 5.1a1, 5.1b1, 5.1rc1, 5.2, 5.2.1, 5.2.2, 5.2.3, 5.2a1, 5.2b1, 5.2rc1]
Recommendation: Update to version 5.2.3.

Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection

Published date: 2022-07-05T00:00:53Z
CVE: CVE-2022-34265
Links:

An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. The Trunc() and Extract() database functions are subject to SQL injection if untrusted data is used as a kind/lookup_name value. Applications that constrain the lookup name and kind choice to a known safe list are unaffected.

Affected versions: ["4.0", "4.0.1", "4.0.2", "4.0.3", "4.0.4", "4.0.5", "3.2", "3.2.1", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6", "3.2.7", "3.2.8", "3.2.9", "3.2.10", "3.2.11", "3.2.12", "3.2.13"]
Secure versions: [2.2.27, 2.2.28, 3.0a1, 3.1.12, 3.1.13, 3.1.14, 3.2.25, 4.1.13, 4.2.17, 4.2.18, 4.2.19, 4.2.20, 4.2.21, 4.2.22, 4.2.23, 4.2a1, 4.2b1, 4.2rc1, 5.0.10, 5.0.11, 5.0.12, 5.0.13, 5.0.14, 5.0a1, 5.0b1, 5.0rc1, 5.1.10, 5.1.11, 5.1.4, 5.1.5, 5.1.6, 5.1.7, 5.1.8, 5.1.9, 5.1a1, 5.1b1, 5.1rc1, 5.2, 5.2.1, 5.2.2, 5.2.3, 5.2a1, 5.2b1, 5.2rc1]
Recommendation: Update to version 5.2.3.

Django contains Uncontrolled Resource Consumption via cached header

Published date: 2023-02-01T21:30:23Z
CVE: CVE-2023-23969
Links:

In Django 3.2 before 3.2.17, 4.0 before 4.0.9, and 4.1 before 4.1.6, the parsed values of Accept-Language headers are cached in order to avoid repetitive parsing. This leads to a potential denial-of-service vector via excessive memory usage if the raw value of Accept-Language headers is very large.

Affected versions: ["4.0b1", "4.0rc1", "4.1a1", "4.1b1", "4.1rc1", "4.1", "4.1.1", "4.1.2", "4.1.3", "4.1.4", "4.1.5", "4.0a1", "4.0", "4.0.1", "4.0.2", "4.0.3", "4.0.4", "4.0.5", "4.0.6", "4.0.7", "4.0.8", "3.1rc1", "3.2", "3.2rc1", "3.0b1", "3.0rc1", "3.1b1", "3.2a1", "3.2b1", "3.2.1", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6", "3.2.7", "3.2.8", "3.2.9", "3.2.10", "3.2.11", "3.2.12", "3.2.13", "3.2.14", "3.2.15", "3.2.16"]
Secure versions: [2.2.27, 2.2.28, 3.0a1, 3.1.12, 3.1.13, 3.1.14, 3.2.25, 4.1.13, 4.2.17, 4.2.18, 4.2.19, 4.2.20, 4.2.21, 4.2.22, 4.2.23, 4.2a1, 4.2b1, 4.2rc1, 5.0.10, 5.0.11, 5.0.12, 5.0.13, 5.0.14, 5.0a1, 5.0b1, 5.0rc1, 5.1.10, 5.1.11, 5.1.4, 5.1.5, 5.1.6, 5.1.7, 5.1.8, 5.1.9, 5.1a1, 5.1b1, 5.1rc1, 5.2, 5.2.1, 5.2.2, 5.2.3, 5.2a1, 5.2b1, 5.2rc1]
Recommendation: Update to version 5.2.3.

Django denial-of-service vulnerability in internationalized URLs

Published date: 2022-10-16T12:00:23Z
CVE: CVE-2022-41323
Links:

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.

Affected versions: ["4.1", "4.1.1", "4.0", "4.0.1", "4.0.2", "4.0.3", "4.0.4", "4.0.5", "4.0.6", "4.0.7", "3.2", "3.2.1", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6", "3.2.7", "3.2.8", "3.2.9", "3.2.10", "3.2.11", "3.2.12", "3.2.13", "3.2.14", "3.2.15"]
Secure versions: [2.2.27, 2.2.28, 3.0a1, 3.1.12, 3.1.13, 3.1.14, 3.2.25, 4.1.13, 4.2.17, 4.2.18, 4.2.19, 4.2.20, 4.2.21, 4.2.22, 4.2.23, 4.2a1, 4.2b1, 4.2rc1, 5.0.10, 5.0.11, 5.0.12, 5.0.13, 5.0.14, 5.0a1, 5.0b1, 5.0rc1, 5.1.10, 5.1.11, 5.1.4, 5.1.5, 5.1.6, 5.1.7, 5.1.8, 5.1.9, 5.1a1, 5.1b1, 5.1rc1, 5.2, 5.2.1, 5.2.2, 5.2.3, 5.2a1, 5.2b1, 5.2rc1]
Recommendation: Update to version 5.2.3.

400 Other Versions

Version License Security Released
4.2 BSD-3-Clause AND BSD 8 1970-01-01 - 00:00 over 55 years
4.2.3 BSD-3-Clause AND BSD 7 1970-01-01 - 00:00 over 55 years
4.2.4 BSD-3-Clause AND BSD 7 1970-01-01 - 00:00 over 55 years
4.2.1 BSD-3-Clause AND BSD 8 1970-01-01 - 00:00 over 55 years
4.2.8 BSD-3-Clause AND BSD 4 1970-01-01 - 00:00 over 55 years
4.2.5 BSD-3-Clause AND BSD 6 1970-01-01 - 00:00 over 55 years
4.2.2 BSD-3-Clause AND BSD 8 1970-01-01 - 00:00 over 55 years
5.0 BSD-3-Clause AND BSD 4 1970-01-01 - 00:00 over 55 years
5.0.1 BSD-3-Clause AND BSD 4 1970-01-01 - 00:00 over 55 years
4.2.9 BSD-3-Clause AND BSD 4 1970-01-01 - 00:00 over 55 years
4.2.7 BSD-3-Clause AND BSD 4 1970-01-01 - 00:00 over 55 years
4.2.6 BSD-3-Clause AND BSD 5 1970-01-01 - 00:00 over 55 years
1.2.5 BSD 26 2011-02-09 - 04:08 over 14 years
1.2 BSD 30 2010-05-17 - 20:04 about 15 years
1.3 BSD 28 2011-03-23 - 06:09 over 14 years
1.2.6 BSD 26 2011-09-10 - 03:42 almost 14 years
1.2.1 BSD 30 2010-05-24 - 21:19 about 15 years
1.2.3 BSD 29 2010-09-11 - 08:50 almost 15 years
1.2.2 BSD 29 2010-09-09 - 02:41 almost 15 years
1.2.4 BSD 29 2010-12-23 - 05:15 over 14 years
1.10rc1 BSD 24 2016-07-18 - 18:04 almost 9 years
1.3.7 BSD 20 2013-02-20 - 20:03 over 12 years
1.0.1 BSD 26 1970-01-01 - 00:00 over 55 years
1.10a1 BSD 25 2016-05-20 - 12:16 about 9 years
1.3.5 BSD 22 2012-12-10 - 21:39 over 12 years
1.2.7 BSD 22 2011-09-11 - 03:05 almost 14 years
1.4.3 BSD 28 2012-12-10 - 21:46 over 12 years
1.4.9 BSD 23 2013-10-25 - 04:38 over 11 years
1.11rc1 BSD 24 2017-03-21 - 22:55 over 8 years
1.1.2 BSD 29 1970-01-01 - 00:00 over 55 years
1.0.4 BSD 26 1970-01-01 - 00:00 over 55 years
1.1.3 BSD 27 2010-12-23 - 05:14 over 14 years
1.0.2 BSD 26 1970-01-01 - 00:00 over 55 years
1.4 BSD 30 2012-03-23 - 18:00 over 13 years
1.4.6 BSD 25 2013-08-13 - 16:52 almost 12 years
1.4.4 BSD 26 2013-02-19 - 20:27 over 12 years
1.4.5 BSD 26 2013-02-20 - 19:54 over 12 years
1.3.4 BSD 22 2013-03-05 - 22:33 over 12 years
1.1.4 BSD 24 2011-02-09 - 04:13 over 14 years
1.4.10 BSD 23 2013-11-06 - 14:21 over 11 years
1.0.3 BSD 26 1970-01-01 - 00:00 over 55 years
1.3.2 BSD 23 2012-07-30 - 23:02 almost 13 years
1.3.1 BSD 25 2011-09-10 - 03:36 almost 14 years
1.10b1 BSD 25 2016-06-22 - 01:15 about 9 years
1.4.1 BSD 29 2012-07-30 - 22:48 almost 13 years
1.11b1 BSD 25 2017-02-20 - 23:21 over 8 years
1.4.7 BSD 24 2013-09-11 - 01:18 almost 12 years
1.1 BSD 29 1970-01-01 - 00:00 over 55 years
1.3.6 BSD 20 2013-02-19 - 20:32 over 12 years
1.1.1 BSD 29 1970-01-01 - 00:00 over 55 years