- -------------------------------------------------------------------------
Debian LTS Advisory DLA-3415-1                debian-lts@lists.debian.org
https://www.debian.org/lts/security/                           Chris Lamb
May 05, 2023                                  https://wiki.debian.org/LTS
- -------------------------------------------------------------------------

Package        : python-django
Version        : 1:1.11.29-1+deb10u8
CVE ID         : CVE-2023-31047
Debian Bug     : 1035467

It was discovered that there was a potential validation bypass in
Django, a popular Python-based web development framework.

Uploading multiple files using one form field has never been
supported by forms.FileField or forms.ImageField, as only the last
uploaded file was ever validated. Unfortunately, the uploading
multiple files topic in the documentation suggested otherwise.

In order to avoid a vulnerability, ClearableFileInput and FileInput
form widgets now raise ValueError when the multiple HTML attribute is
set on them. To prevent the exception and keep the old behavior, set
allow_multiple_selected to True.

For more details on using the new attribute and handling of multiple
files through a single field, please see:
https://www.djangoproject.com/weblog/2023/may/03/security-releases/

For Debian 10 buster, this problem has been fixed in version
1:1.11.29-1+deb10u8.

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/source-package/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

Debian LTS: DLA-3415-1: python-django security update

May 5, 2023
It was discovered that there was a potential validation bypass in Django, a popular Python-based web development framework

Summary

Uploading multiple files using one form field has never been
supported by forms.FileField or forms.ImageField, as only the last
uploaded file was ever validated. Unfortunately, the uploading
multiple files topic in the documentation suggested otherwise.

In order to avoid a vulnerability, ClearableFileInput and FileInput
form widgets now raise ValueError when the multiple HTML attribute is
set on them. To prevent the exception and keep the old behavior, set
allow_multiple_selected to True.

For more details on using the new attribute and handling of multiple
files through a single field, please see:
https://www.djangoproject.com/weblog/2023/may/03/security-releases/

For Debian 10 buster, this problem has been fixed in version
1:1.11.29-1+deb10u8.

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/source-package/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



Severity
Package : python-django
Version : 1:1.11.29-1+deb10u8
CVE ID : CVE-2023-31047
Debian Bug : 1035467

Related News