Read the docs
TI-2021-14006 Aliases CVE-2021-35042GHSA-xpfp-f569-q3p2

Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection…

Priority HIGH 71CWE-89Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
SQL injection
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-89.

Summary

Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input from a client of a web application.

Why it matters now

EPSS 0.44369 98th percentileScored 2026-11-07
Fix Fixed Django (PyPI): 3.2.5, 3.1.13

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)3.2a1 to before 3.2.53.2.5Patch availableGHSA-xpfp-f569-q3p2
—Django (PyPI)3.0a1 to before 3.1.133.1.13Patch availableGHSA-xpfp-f569-q3p2
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • Django (PyPI) Vendor— Affected 3.2a1 to before 3.2.5 Fixed in 3.2.5 Patch available GHSA-xpfp-f569-q3p2
  • Django (PyPI) Vendor— Affected 3.0a1 to before 3.1.13 Fixed in 3.1.13 Patch available GHSA-xpfp-f569-q3p2

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*3.1 to before 3.1.13; 3.2 to before 3.2.5Vulnerabledjangoproject
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*34VulnerableFedoraproject
  • cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* Versions 3.1 to before 3.1.13; 3.2 to before 3.2.5 Vulnerable ·djangoproject
  • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject

Remediation

  • Fix · GHSA-xpfp-f569-q3p2 Django (PyPI) Fixed in 3.2.5 Advisory →
  • Fix · GHSA-xpfp-f569-q3p2 Django (PyPI) Fixed in 3.1.13 Advisory →

Vendor assessments

Red Hat

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

Not affected: 11 products
  • Red Hat Ansible Automation Platform 1.2
  • Red Hat Ansible Tower 3
  • Red Hat Ceph Storage 2
  • Red Hat Ceph Storage 3
  • Red Hat OpenStack Platform 10 (Newton)
  • Red Hat OpenStack Platform 13 (Queens)
  • Red Hat OpenStack Platform 16.1
  • Red Hat OpenStack Platform 16.2
  • Red Hat Satellite 6
  • Red Hat Storage 3
  • Red Hat Update Infrastructure 3 for Cloud Providers

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-35042
  2. 2026-10-03 Alias added: GHSA-xpfp-f569-q3p2

References

Sources