ADVISORIES

openEuler Security Advisory

OESA-2022-1642

python-django security update

Details

A high-level Python Web framework that encourages rapid development and clean, pragmatic design.

Security Fix(es):

An issue was discovered in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. QuerySet.annotate(), aggregate(), and extra() methods are subject to SQL injection in column aliases via a crafted dictionary (with dictionary expansion) as the passed kwargs.(CVE-2022-28346) A SQL injection issue was discovered in QuerySet.explain() in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. This occurs by passing a crafted dictionary (with dictionary expansion) as the options argument, and placing the injection payload in an option name.(CVE-2022-28347)

Affected packages

EcosystemPackageAffected versions
openEuler:20.03-LTS-SP1python-django
All versions before 2.2.27-2.oe1 (fixed in 2.2.27-2.oe1)
openEuler:20.03-LTS-SP3python-django
All versions before 2.2.27-2.oe1 (fixed in 2.2.27-2.oe1)
openEuler:22.03-LTSpython-django
All versions before 2.2.27-2.oe2203 (fixed in 2.2.27-2.oe2203)

References