OESA-2022-1530

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2022-1530
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2022-1530.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2022-1530
Upstream
Published
2022-02-19T11:03:32Z
Modified
2025-08-12T05:10:49.101435Z
Summary
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.26, 3.2 before 3.2.11, and 4.0 before 4.0.1. UserAttributeSimilarityValidator incurred significant overhead in evaluating a submitted password that was artificially large in relation to the comparison values. In a situation where access to user registration was unrestricted, this provided a potential vector for a denial-of-service attack.(CVE-2021-45115)

An issue was discovered in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1. Due to leveraging the Django Template Language's variable resolution logic, the dictsort template filter was potentially vulnerable to information disclosure, or an unintended method call, if passed a suitably crafted key.(CVE-2021-45116)

Storage.save in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1 allows directory traversal if crafted filenames are directly passed to it.(CVE-2021-45452)

The debug template tag in Django 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2 does not properly encode the current context. This may lead to XSS.(CVE-2022-22818)

An issue was discovered in MultiPartParser in Django 2.2 before 2.2.27, 3.2 before 3.2.12, and 4.0 before 4.0.2. Passing certain inputs to multipart forms could result in an infinite loop when parsing files.(CVE-2022-23833)

Database specific
{
    "severity": "High"
}
References

Affected packages

openEuler:20.03-LTS-SP1 / python-django

Package

Name
python-django
Purl
pkg:rpm/openEuler/python-django&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.27-1.oe1

Ecosystem specific

{
    "noarch": [
        "python-django-help-2.2.27-1.oe1.noarch.rpm",
        "python3-Django-2.2.27-1.oe1.noarch.rpm"
    ],
    "src": [
        "python-django-2.2.27-1.oe1.src.rpm"
    ]
}

openEuler:20.03-LTS-SP2 / python-django

Package

Name
python-django
Purl
pkg:rpm/openEuler/python-django&distro=openEuler-20.03-LTS-SP2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.27-1.oe1

Ecosystem specific

{
    "noarch": [
        "python-django-help-2.2.27-1.oe1.noarch.rpm",
        "python3-Django-2.2.27-1.oe1.noarch.rpm"
    ],
    "src": [
        "python-django-2.2.27-1.oe1.src.rpm"
    ]
}

openEuler:20.03-LTS-SP3 / python-django

Package

Name
python-django
Purl
pkg:rpm/openEuler/python-django&distro=openEuler-20.03-LTS-SP3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.27-1.oe1

Ecosystem specific

{
    "noarch": [
        "python3-Django-2.2.27-1.oe1.noarch.rpm",
        "python-django-help-2.2.27-1.oe1.noarch.rpm"
    ],
    "src": [
        "python-django-2.2.27-1.oe1.src.rpm"
    ]
}