Debian Codegraph @

docs/releases/4.2.14.txt

raw
1 ===========================
2 Django 4.2.14 release notes
3 ===========================
4
5 *July 9, 2024*
6
7 Django 4.2.14 fixes two security issues with severity "moderate" and two
8 security issues with severity "low" in 4.2.13.
9
10 CVE-2024-38875: Potential denial-of-service vulnerability in ``django.utils.html.urlize()``
11 ===========================================================================================
12
13 :tfilter:`urlize` and :tfilter:`urlizetrunc` were subject to a potential
14 denial-of-service attack via certain inputs with a very large number of
15 brackets.
16
17 CVE-2024-39329: Username enumeration through timing difference for users with unusable passwords
18 ================================================================================================
19
20 The :meth:`~django.contrib.auth.backends.ModelBackend.authenticate()` method
21 allowed remote attackers to enumerate users via a timing attack involving login
22 requests for users with unusable passwords.
23
24 CVE-2024-39330: Potential directory-traversal via ``Storage.save()``
25 ====================================================================
26
27 Derived classes of the :class:`~django.core.files.storage.Storage` base class
28 which override :meth:`generate_filename()
29 <django.core.files.storage.Storage.generate_filename()>` without replicating
30 the file path validations existing in the parent class, allowed for potential
31 directory-traversal via certain inputs when calling :meth:`save()
32 <django.core.files.storage.Storage.save()>`.
33
34 Built-in ``Storage`` sub-classes were not affected by this vulnerability.
35
36 CVE-2024-39614: Potential denial-of-service vulnerability in ``get_supported_language_variant()``
37 =================================================================================================
38
39 :meth:`~django.utils.translation.get_supported_language_variant` was subject to
40 a potential denial-of-service attack when used with very long strings
41 containing specific characters.
42
43 To mitigate this vulnerability, the language code provided to
44 :meth:`~django.utils.translation.get_supported_language_variant` is now parsed
45 up to a maximum length of 500 characters.
46
47 When the language code is over 500 characters, a :exc:`ValueError` will now be
48 raised if ``strict`` is ``True``, or if there is no generic variant and
49 ``strict`` is ``False``.