PT-2023-3407 · Django+6 · Django+6

Moataz Al-Sharida

+1

·

Publicado

2023-01-03

·

Atualizado

2026-01-03

·

CVE-2023-31047

CVSS v2.0

10

Crítica

VetorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Django versions 3.2 through 3.2.18 Django versions 4.0 through 4.1.8 Django versions 4.2 through 4.2.0
Description The issue is related to insufficient input validation in the forms.FileField and forms.ImageField components of the Django web application platform. This allows a remote attacker to access confidential data, compromise its integrity, and cause a denial of service. The vulnerability is caused by the ability to bypass validation when using one form field to upload multiple files, which has never been supported by forms.FileField or forms.ImageField. However, Django's documentation suggested otherwise, leading to the vulnerability.
Recommendations For Django versions 3.2 through 3.2.18, update to version 3.2.19 or later. For Django versions 4.0 through 4.1.8, update to version 4.1.9 or later. For Django versions 4.2 through 4.2.0, update to version 4.2.1 or later. As a temporary workaround, consider disabling the use of forms.FileField and forms.ImageField for multiple file uploads until a patch is available. Restrict access to the forms.FileField and forms.ImageField components to minimize the risk of exploitation. Avoid using these components for multiple file uploads until the issue is resolved.

Correção

RCE

Missing Authorization

Unrestricted File Upload

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

ALT-PU-2023-1898
ALT-PU-2023-1911
ALT-PU-2023-2071
BDU:2023-03582
BIT-DJANGO-2023-31047
CVE-2023-31047
DLA-3415-1
DSA-5465-1
GHSA-R3XC-PRGR-MG9P
MGASA-2023-0165
OESA-2023-1286
OPENSUSE-SU-2024:12943-1
OPENSUSE-SU-2024:14208-1
OPENSUSE-SU-2026:10005-1
PYSEC-2023-61
RHSA-2023:4591
RHSA-2023:5931
RHSA-2023:6818
RLSA-2023:6818
SUSE-SU-2023:2839-1
USN-6054-1
USN-6054-2

Produtos afetados

Alt Linux
Astra Linux
Django
Linuxmint
Red Os
Rocky Linux
Ubuntu