Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 830593 (CVE-2021-45115, CVE-2021-45116, CVE-2021-45452)

Summary: <dev-python/django-{2.2.26,3.2.11}: Multiple vulnerabilities
Product: Gentoo Security Reporter: Sam James <sam>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: IN_PROGRESS ---    
Severity: minor CC: python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: B3 [glsa?]
Package list:
Runtime testing required: ---
Bug Depends on: 830615    
Bug Blocks:    

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-04 12:03:23 UTC
See https://www.djangoproject.com/weblog/2022/jan/04/security-releases/.

---
In accordance with our security release policy, the Django team is issuing Django 4.0.1, Django 3.2.11, and Django 2.2.26. These release addresses the security issues detailed below. We encourage all users of Django to upgrade as soon as possible.

CVE-2021-45115: Denial-of-service possibility in UserAttributeSimilarityValidator

UserAttributeSimilarityValidator incurred significant overhead evaluating submitted password that were artificially large in relative to the comparison values. On the assumption that access to user registration was unrestricted this provided a potential vector for a denial-of-service attack.

In order to mitigate this issue, relatively long values are now ignored by UserAttributeSimilarityValidator.

Thanks Chris Bailey for the report.

This issue has severity "medium" according to the Django security policy.
CVE-2021-45116: Potential information disclosure in dictsort template filter

Due to leveraging the Django Template Language's variable resolution logic, the dictsort template filter was potentially vulnerable to information disclosure or unintended method calls, if passed a suitably crafted key.

In order to avoid this possibility, dictsort now works with a restricted resolution logic, that will not call methods, nor allow indexing on dictionaries.

As a reminder, all untrusted user input should be validated before use.

Thanks to Dennis Brinkrolf for the report.

This issue has severity "low" according to the Django security policy.
CVE-2021-45452: Potential directory-traversal via Storage.save()

Storage.save() allowed directory-traversal if directly passed suitably crafted file names.

Thanks to Dennis Brinkrolf for the report.

This issue has severity "low" according to the Django security policy.
Comment 1 Larry the Git Cow gentoo-dev 2022-01-04 21:29:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d36750593a87f1e4fed09d03f6ef95395a3a135

commit 9d36750593a87f1e4fed09d03f6ef95395a3a135
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2022-01-04 21:29:01 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2022-01-04 21:29:37 +0000

    dev-python/django: add 2.2.26, 3.2.11, 4.0.1
    
    Bug: https://bugs.gentoo.org/830593
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-python/django/Manifest             |   6 ++
 dev-python/django/django-2.2.26.ebuild |  92 +++++++++++++++++++++++++++++
 dev-python/django/django-3.2.11.ebuild | 101 ++++++++++++++++++++++++++++++++
 dev-python/django/django-4.0.1.ebuild  | 103 +++++++++++++++++++++++++++++++++
 4 files changed, 302 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2022-01-04 22:05:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eec0486412ed8531bb64cd69820ee9ba4670dd27

commit eec0486412ed8531bb64cd69820ee9ba4670dd27
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2022-01-04 22:05:27 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2022-01-04 22:05:27 +0000

    dev-python/django: drop 2.2.25, 3.1.14, 3.2.10, 4.0
    
    Bug: https://bugs.gentoo.org/830593
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-python/django/Manifest             |   8 ---
 dev-python/django/django-2.2.25.ebuild |  92 -----------------------------
 dev-python/django/django-3.1.14.ebuild |  95 ------------------------------
 dev-python/django/django-3.2.10.ebuild | 101 --------------------------------
 dev-python/django/django-4.0.ebuild    | 103 ---------------------------------
 5 files changed, 399 deletions(-)
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-01-04 23:24:18 UTC
Thanks Arthur!