Critical Vulnerability in Python-Django: Infinite Loop in MultiPartParser

python-django Updated 02 Oct 2025

Summary

01/02/2022
N/A
Yes i
High
7.5

UBUNTU-CVE-2022-23833: An issue was discovered in MultiPartParser in Django 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2. Affects python-django versions < 1.6.11-0ubuntu1.3+esm4. Fixed in 1.6.11-0ubuntu1.3+esm4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Python-Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It is widely used for building web applications and provides features such as an ORM, routing, and templating. However, certain versions of Django are susceptible to a vulnerability in the MultiPartParser, which can lead to an infinite loop when processing multipart form data.

Vulnerability Detail

An issue was discovered in MultiPartParser in Django versions 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2. The vulnerability arises when specific inputs are passed to multipart forms, potentially causing the application to enter an infinite loop during file parsing. This can lead to denial of service as the application becomes unresponsive, affecting user experience and system stability.

How To Fix

Minimum fixed version

1.6.11-0ubuntu1.3+esm4

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-django

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using multipart forms until the package is updated. Additionally, consider implementing input validation to mitigate the risk of triggering the infinite loop.

Conclusion

The vulnerability in Python-Django's MultiPartParser poses a significant risk to applications using affected versions. It is crucial to update to the patched versions to mitigate the risk of denial of service and ensure application stability.

See every vulnerability recorded for python-django →

Share this vulnerability

FAQ

The vulnerability affects Django versions 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2.

Exploiting this vulnerability can lead to an infinite loop, causing denial of service and making the application unresponsive.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.

Yes, patches are available in the form of updated versions of Django. Ensure to upgrade to the specified patched versions.

The CVSS score for this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for python-django.

How To Fix

Minimum fixed version

1.6.11-0ubuntu1.3+esm4

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-django

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback