Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Mon, 11 Apr 2022 10:04:24 +0200
From: Mariusz Felisiak <>
Subject: Django: CVE-2022-28347: Potential SQL injection via
 QuerySet.explain(**options) on PostgreSQL

In accordance with `our security release policy
<>`_, the 
Django team
is issuing
`Django 4.0.4 <>`_,
`Django 3.2.13 
<>`_, and
`Django 2.2.28 <>`_.
These release addresses the security issues detailed below. We encourage all
users of Django to upgrade as soon as possible.

CVE-2022-28347: Potential SQL injection via 
``QuerySet.explain(**options)`` on PostgreSQL

``QuerySet.explain()`` method was subject to SQL injection in option 
names, using a suitably crafted dictionary, with dictionary expansion, 
as the ``**options`` argument.

This issue has severity "high" according to the Django security policy.

Affected supported versions

* Django main branch
* Django 4.0
* Django 3.2
* Django 2.2


Patches to resolve the issue have been applied to Django's main branch 
and to
the 4.0, 3.2, and 2.2 release branches. The patches may be obtained from the
following changesets.

* On the `main branch 
* On the `4.0 release branch 
* On the `3.2 release branch 
* On the `2.2 release branch 

The following releases have been issued:

* Django 4.0.4 (`download Django 4.0.4 
<>`_ | 
`4.0.4 checksums 
* Django 3.2.13 (`download Django 3.2.13 
<>`_ | 
`3.2.13 checksums 
* Django 2.2.28 (`download Django 2.2.28 
<>`_ | 
`2.2.28 checksums 

The PGP key ID used for this release is Mariusz Felisiak: 
`2EF56372BA48CD1B <>`_.

General notes regarding security reporting

As always, we ask that potential security issues be reported via
private email to ````, and not via Django's
Trac instance or the django-developers list. Please see `our security
policies <>`_ for further

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.