Debian Security Advisory

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

Date Reported:
05 May 2023
Affected Packages:
python-django
Vulnerable:
Yes
Security database references:
In Mitre's CVE dictionary: CVE-2023-31047.
More information:

t was discovered that there was a potential validation bypass in Djang, 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 upstream's website

  • CVE-2023-31047

    Potential bypass of validation when uploading multiple files using one form field

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.

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