Advisory

GHSA-xpfp-f569-q3p2

Also known as: BIT-django-2021-35042, CVE-2021-35042, PYSEC-2021-109

Summary

SQL Injection in Django

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-09-22 17:34 UTC
Modified
2025-02-21 05:30 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 3.2a1, fixed 3.2.5 (ecosystem)

Fixed versions

3.2.5

Fix

  • Fixed version 3.2.5
    pip install --upgrade django==3.2.5

django

PyPI · All systems

Affected

  • introduced 3.0a1, fixed 3.1.13 (ecosystem)

Fixed versions

3.1.13

Fix

  • Fixed version 3.1.13
    pip install --upgrade django==3.1.13

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences