Skip to main content
← All vulnerabilities
CVE-2021-31542GHSA-RXJP-MFM9-W4WRBIT-DJANGO-2021-31542PYSEC-2021-7

In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and FieldFile allowed directory traversa

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.2.21, 3.1.9, 3.2.1
None on Exploit-DB, Metasploit or GitHub

Summary

In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and FieldFile allowed directory traversal via uploaded files with suitably crafted file names.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • djangoPyPI

    From 2.2 · fixed in 2.2.21

  • djangoPyPI

    From 3.0 · fixed in 3.1.9

  • djangoPyPI

    From 3.2 · fixed in 3.2.1

  • djangoPyPI

    From 2.2 · fixed in 2.2.21; From 3.1 · fixed in 3.1.9; From 3.2 · fixed in 3.2.1

References 11

groups.google.com

docs.djangoproject.com

openwall.com

djangoproject.com

lists.debian.org

lists.fedoraproject.org

security.netapp.com

GitHub · django/django