Improper access control in Django - CVE-2021-44420

 

Improper access control in Django - CVE-2021-44420

Published: December 7, 2021


Vulnerability identifier: #VU58552
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-44420
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain unauthorized access to otherwise restricted functionality.

The vulnerability exists due to improper access restrictions. A remote attacker can send specially crafted HTTP requests for URLs with trailing newlines and bypass an upstream access control based on URL paths.


Affected software

Django
Gentoo Linux
Ubuntu
Fedora
python3-django (Ubuntu package)
python-django
dev-python/django
Red Hat Update Infrastructure (RHUI)

How to mitigate CVE-2021-44420

Install updates from vendor's website.

Django - addressed in versions 2.2.25, 3.1.14, 3.2.10
python3-django (Ubuntu package) - addressed in versions 2:2.2.12-1ubuntu0.8, 2:2.2.20-1ubuntu0.3, 2:2.2.24-1ubuntu1.1
python-django - update to 3.2.12-1.fc35
Red Hat Update Infrastructure (RHUI) - update to 4.3.0
dev-python/django - update to 5.2.1

External References

Related Security Bulletins