CVE-2021-44420 Potential bypass of an upstream access control based on URL paths in Django

High 7.3 Published Updated

Attackers can bypass upstream access controls by using URLs with trailing newlines, potentially accessing restricted resources.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-44420?

CVE-2021-44420 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 7 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Django 2.2 before 2.2.25, 3.1 before 3.1.14, and 3.2 before 3.2.10, HTTP requests for URLs with trailing newlines could bypass upstream access control based on URL paths.

Which versions are affected by CVE-2021-44420?

8 open source packages ship an affected version, including django and Django. It affects 5 products.

PackageAffectedFixed in
django BitnamiFrom 2.2.02.2.25, 3.1.14, 3.2.10
django PyPIFrom 2.22.2.25, 3.1.14, 3.2.10
django PyPIFrom 2.2a12.2.25
django PyPIFrom 3.0a13.1.14
django PyPIFrom 3.2a13.2.10
Django PyPIFrom 2.2a12.2.25
2 more packages
Django PyPIFrom 3.0a13.1.14
Django PyPIFrom 3.2a13.2.10
Linux distribution packages (2)
python-sentry-sdk openSUSE:TumbleweedAll versions1.5.4-1.1
python-sentry-sdk openSUSE:TumbleweedAll versions2.20.0-1.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Djangoproject Django, Fedoraproject Fedora, Redhat Satellite.

How do I fix CVE-2021-44420?

Upgrade django to a fixed version for your release line: 2.2.25, 3.1.14 or 3.2.10.

Is CVE-2021-44420 being exploited?

There is no known exploitation of CVE-2021-44420 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as BIT-django-2021-44420, DEBIAN-CVE-2021-44420, GHSA-v6rh-hp5x-86rv, MGASA-2021-0552, PYSEC-2021-439, UBUNTU-CVE-2021-44420 and 3 more.

Is CVE-2021-44420 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free