Advisory

PYSEC-2022-2

Also known as: BIT-django-2021-45116, CVE-2021-45116, GHSA-8c5j-9r9f-c6w8

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2022-01-05 00:15 UTC
Modified
2023-12-06 01:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.2, fixed 2.2.26, introduced 3.2, fixed 3.2.11, introduced 4.0, fixed 4.0.1 (ecosystem)

Fixed versions

2.2.26, 3.2.11, 4.0.1

Fix

  • Fixed version 2.2.26
    pip install --upgrade django==2.2.26
  • Fixed version 3.2.11
    pip install --upgrade django==3.2.11
  • Fixed version 4.0.1
    pip install --upgrade django==4.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences