===========================================================================
             AUSCERT External Security Bulletin Redistribution             
                                                                           
                               ESB-2024.1300                               
                       python-django security update                       
                               1 March 2024                                
                                                                           
===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           python-django                                           
Publisher:         Debian                                                  
Operating System:  Debian GNU/Linux                                        
Resolution:        Patch/Upgrade                                           
CVE Names:         CVE-2021-33203 CVE-2021-31542 CVE-2021-28658            
                   CVE-2021-33571                                          

Original Bulletin:
   https://lists.debian.org/debian-lts-announce/2024/02/msg00014.html

Comment: CVSS (Max):  7.5 CVE-2021-33571 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
         CVSS Source: NIST                                                 
         Calculator:  https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N


- --------------------------BEGIN INCLUDED TEXT--------------------

- -------------------------------------------------------------------------
Debian LTS Advisory DLA-3744-1                debian-lts@lists.debian.org
https://www.debian.org/lts/security/                           Chris Lamb
February 29, 2024                             https://wiki.debian.org/LTS
- -------------------------------------------------------------------------

Package        : python-django
Version        : 1:1.11.29-1+deb10u11
CVE IDs        : CVE-2021-28658 CVE-2021-31542 CVE-2021-33203 CVE-2021-33571
Debian Bugs    : 986447 988053 989394

It was discovered that there were a number of issues in Django, a
popular Python-based web development framework:

 * CVE-2021-28658: Prevent a directory traversal issue which could
   have been exploited by maliciously crafted filenames. However, the
   built-in upload handlers were not affected by this vulnerability.
   (#986447)

 * CVE-2021-31542: Fix a potential directory-traversal vulnerability
   that could have been exploited by uploaded files. The
   MultiPartParser, UploadedFile and FieldFile classes allowed
   directory-traversal via uploaded files with suitably crafted file
   names. In order to mitigate this risk, stricter basename and path
   sanitation is now applied. Specifically, empty file names and
   paths with dot segments are rejected. (#988053)

 * CVE-2021-33203: Prevent a potential directory traversal via
   admindocs. Staff members could use the admindocs
   TemplateDetailView view to check the existence of arbitrary files.
   Additionally, if (and only if) the default admindocs templates
   have been customized by the developers to also expose the file
   contents, then not only the existence but also the file contents
   would have been exposed. As a mitigation, path sanitation is now
   applied and only files within the template root directories can be
   loaded. (#989394)

 * CVE-2021-33571: Prevent possible SSRF, RFI (Remote File Inclusion)
   and LFI (Local File Inclusion) attacks, since validators accepted
   leading zeros in IPv4 addresses URLValidator,
   validate_ipv4_address() and validate_ipv46_address() did not
   prohibit leading zeros in octal literals. (#989394)

For Debian 10 buster, these problems have been fixed in version
1:1.11.29-1+deb10u11.

We recommend that you upgrade your python-django packages.

For the detailed security status of python-django please refer to
its security tracker page at:
https://security-tracker.debian.org/tracker/python-django

Further information about Debian LTS security advisories, how to apply
these updates to your system and frequently asked questions can be
found at: https://wiki.debian.org/LTS

- --------------------------END INCLUDED TEXT----------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================