Django: CVE-2022-23833: Denial-of-service possibility in file uploads

Related Vulnerabilities: CVE-2022-23833  
                							

                <!--X-Body-Begin-->
<!--X-User-Header-->

oss-sec
mailing list archives
<!--X-User-Header-End-->
<!--X-TopPNI-->

By Date

By Thread

</form>

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
Django: CVE-2022-23833: Denial-of-service possibility in file uploads

<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->

From: Mariusz Felisiak &lt;felisiak.mariusz () gmail com&gt;

Date: Tue, 1 Feb 2022 09:05:56 +0100

<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->

<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
https://www.djangoproject.com/weblog/2022/feb/01/security-releases/

In accordance with `our security release policy
&lt;https://docs.djangoproject.com/en/dev/internals/security/&gt;`_, the 
Django team
is issuing
`Django 4.0.2 &lt;https://docs.djangoproject.com/en/dev/releases/4.0.2/&gt;`_,
`Django 3.2.12 
&lt;https://docs.djangoproject.com/en/dev/releases/3.2.12/&gt;`_, and
`Django 2.2.27 &lt;https://docs.djangoproject.com/en/dev/releases/2.2.27/&gt;`_.
These release addresses the security issues detailed below. We encourage all
users of Django to upgrade as soon as possible.

CVE-2022-23833: Denial-of-service possibility in file uploads
=============================================================

Passing certain inputs to multipart forms could result in an infinite 
loop when
parsing files.

Thanks Alan Ryan for the report.

This issue has severity "medium" according to the Django security policy.

Affected supported versions
===========================

* Django main branch
* Django 4.0
* Django 3.2
* Django 2.2

Resolution
==========

Patches to resolve the issue have been applied to Django's main branch 
and to
the 4.0, 3.2, and 2.2 release branches. The patches may be obtained from the
following changesets.

* On the `main branch 
&lt;https://github.com/django/django/commit/fc18f36c4ab94399366ca2f2007b3692559a6f23&gt;`__
* On the `4.0 release branch 
&lt;https://github.com/django/django/commit/f9c7d48fdd6f198a6494a9202f90242f176e4fc9&gt;`__
* On the `3.2 release branch 
&lt;https://github.com/django/django/commit/d16133568ef9c9b42cb7a08bdf9ff3feec2e5468&gt;`__
* On the `2.2 release branch 
&lt;https://github.com/django/django/commit/c477b761804984c932704554ad35f78a2e230c6a&gt;`__

The following releases have been issued:

* Django 4.0.2 (`download Django 4.0.2 
&lt;https://www.djangoproject.com/m/releases/4.0/Django-4.0.2.tar.gz&gt;`_ | 
`4.0.2 checksums 
&lt;https://www.djangoproject.com/m/pgp/Django-4.0.2.checksum.txt&gt;`_)
* Django 3.2.12 (`download Django 3.2.12 
&lt;https://www.djangoproject.com/m/releases/3.2/Django-3.2.12.tar.gz&gt;`_ | 
`3.2.12 checksums 
&lt;https://www.djangoproject.com/m/pgp/Django-3.2.12.checksum.txt&gt;`_)
* Django 2.2.27 (`download Django 2.2.27 
&lt;https://www.djangoproject.com/m/releases/2.2/Django-2.2.27.tar.gz&gt;`_ | 
`2.2.27 checksums 
&lt;https://www.djangoproject.com/m/pgp/Django-2.2.27.checksum.txt&gt;`_)

The PGP key ID used for this release is Mariusz Felisiak: 
`2EF56372BA48CD1B &lt;https://github.com/felixxm.gpg&gt;`_.

General notes regarding security reporting
==========================================

As always, we ask that potential security issues be reported via
private email to ``security () djangoproject com``, and not via Django's
Trac instance or the django-developers list. Please see `our security
policies &lt;https://www.djangoproject.com/security/&gt;`_ for further
information.

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->

<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->

By Date

By Thread

Current thread:

Django: CVE-2022-23833: Denial-of-service possibility in file uploads Mariusz Felisiak (Feb 01)

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->