Read the docs
TI-2021-11662 Aliases CVE-2021-31542GHSA-rxjp-mfm9-w4wr

In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser…

Priority MEDIUM 41CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure, Code execution
Confidentiality · integrity · availability
High · None · None
Fix status
Partial Red Hat: 3 fixed, 8 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22, CWE-434 and the CVSS impact.

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.

Why it matters now

EPSS 0.05334 92nd percentileScored 2026-11-07
Fix Partial Django (PyPI): 2.2.21, 3.1.9, 3.2.1Red Hat: 2 advisoriesRed Hat: 3 fixed, 8 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—Django (PyPI)2.2 to before 2.2.212.2.21Patch availableGHSA-rxjp-mfm9-w4wr
—Django (PyPI)3.0 to before 3.1.93.1.9Patch availableGHSA-rxjp-mfm9-w4wr
—Django (PyPI)3.2 to before 3.2.13.2.1Patch availableGHSA-rxjp-mfm9-w4wr
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • Django (PyPI) Vendor— Affected 2.2 to before 2.2.21 Fixed in 2.2.21 Patch available GHSA-rxjp-mfm9-w4wr
  • Django (PyPI) Vendor— Affected 3.0 to before 3.1.9 Fixed in 3.1.9 Patch available GHSA-rxjp-mfm9-w4wr
  • Django (PyPI) Vendor— Affected 3.2 to before 3.2.1 Fixed in 3.2.1 Patch available GHSA-rxjp-mfm9-w4wr

CPE configurations NVD · 4

CPEVersionsRoleVendor
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*2.2 to before 2.2.21; 3.1 to before 3.1.9; 3.2 to before 3.2.1Vulnerabledjangoproject
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*9.0VulnerableDebian
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*34VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*35VulnerableFedoraproject
  • cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* Versions 2.2 to before 2.2.21; 3.1 to before 3.1.9; 3.2 to before 3.2.1 Vulnerable ·djangoproject
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
  • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
  • cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject

Remediation

  • Fix · GHSA-rxjp-mfm9-w4wr Django (PyPI) Fixed in 2.2.21 Advisory →
  • Fix · GHSA-rxjp-mfm9-w4wr Django (PyPI) Fixed in 3.1.9 Advisory →
  • Fix · GHSA-rxjp-mfm9-w4wr Django (PyPI) Fixed in 3.2.1 Advisory →

Red Hat 2 advisories

  • RHSA-2021:5070 Released 2021-12-09 · Red Hat rating Moderate
    Red Hat OpenStack Platform 16.1 (python-django20) security update
    • Red Hat OpenStack Platform 16.1 python-django20-2.0.13-16.el8ost.1, python-django20-bash-completion-2.0.13-16.el8ost.1, python3-django20-2.0.13-16.el8ost.1
  • RHSA-2021:4702 Released 2021-11-16 · Red Hat rating Moderate
    Satellite 6.10 Release
    • Red Hat Satellite 6.10 candlepin-4.0.9-1.el7sat, foreman-2.5.2.17-2.el7sat, python-aiohttp-3.7.4-1.el7pc +14
    • Red Hat Satellite Capsule 6.10 foreman-2.5.2.17-2.el7sat, python-aiohttp-3.7.4-1.el7pc, python-ecdsa-0.13.3-2.el7pc +9

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Ansible Automation Platform 1.2AffectedNo fix yet
Red Hat Ceph Storage 2AffectedNo fix planned: Out of support scope
Red Hat Ceph Storage 3AffectedNo fix planned: Out of support scope
Red Hat OpenStack Platform 10 (Newton)AffectedNo fix planned: Out of support scope
Red Hat OpenStack Platform 13 (Queens)AffectedNo fix planned: Will not fix
Red Hat Satellite 6AffectedNo fix planned: Will not fix
Red Hat Storage 3AffectedNo fix planned: Will not fix
Red Hat Update Infrastructure 3 for Cloud ProvidersAffectedNo fix planned: Will not fix
Red Hat OpenStack Platform 16.1Fixed RHSA-2021:5070
Red Hat Satellite 6.10Fixed RHSA-2021:4702
Red Hat Satellite Capsule 6.10Fixed RHSA-2021:4702
Not affected: 3 products
  • Red Hat Ansible Tower 3
  • Red Hat Satellite 6.10
  • Red Hat Satellite Capsule 6.10

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-31542
  2. 2026-10-03 Alias added: GHSA-rxjp-mfm9-w4wr

References

Sources