Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905688 (CVE-2023-31047) - <dev-python/django-{3.2.19,4.1.9,4.2.1}: Potential bypass of validation when uploading multiple files using one form field
Summary: <dev-python/django-{3.2.19,4.1.9,4.2.1}: Potential bypass of validation when ...
Status: RESOLVED FIXED
Alias: CVE-2023-31047
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://docs.djangoproject.com/en/4.2...
Whiteboard: B4 [noglsa]
Keywords:
Depends on: 905685 905686 905687
Blocks:
  Show dependency tree
 
Reported: 2023-05-04 07:27 UTC by Michał Górny
Modified: 2023-05-08 03:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-05-04 07:27:02 UTC
From $URL:

```
CVE-2023-31047: Potential bypass of validation when uploading multiple files using one form field¶

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

In order to avoid the 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.
```
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-05-04 15:30:45 UTC
cleanup done.
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-05-08 03:59:37 UTC
Thank you! All done.