Your submission was sent successfully! Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

CVE-2021-35042

Published: 1 July 2021

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.

Notes

AuthorNote
sbeattie
all django 2.x versions are not affected because deprecation
changes that removed the column format validation were not applied to
the 2.x versions.
introduced by 513948735b ("Fixed #31426 -- Added proper field
validation to QuerySet.order_by().") upstream

Priority

Medium

Cvss 3 Severity Score

9.8

Score breakdown

Status

Package Release Status
python-django
Launchpad, Ubuntu, Debian
impish Not vulnerable
(code not present)
jammy Not vulnerable
(code not present)
bionic Not vulnerable
(code not present)
focal Not vulnerable
(code not present)
groovy Not vulnerable
(code not present)
hirsute Not vulnerable
(code not present)
trusty Not vulnerable
(code not present)
upstream Not vulnerable
(debian: Vulnerable code introduced in 3.1)
xenial Not vulnerable
(code not present)

Severity score breakdown

Parameter Value
Base score 9.8
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Scope Unchanged
Confidentiality High
Integrity impact High
Availability impact High
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H