Advisory

PYSEC-2021-99

Also known as: BIT-django-2021-33571, CVE-2021-33571, GHSA-p99v-5w3c-jqq9

Summary

The record has no summary.

Details

In Django 2.2 before 2.2.24, 3.x before 3.1.12, and 3.2 before 3.2.4, URLValidator, validate_ipv4_address, and validate_ipv46_address do not prohibit leading zero characters in octal literals. This may allow a bypass of access control that is based on IP addresses. (validate_ipv4_address and validate_ipv46_address are unaffected with Python 3.9.5+..) .

Severity

Not rated by the source.

Dates

Published
2021-06-08 18:15 UTC
Modified
2023-12-06 01:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.2, fixed 2.2.24, introduced 3.0, fixed 3.1.12, introduced 3.2, fixed 3.2.4 (ecosystem)

Fixed versions

2.2.24, 3.1.12, 3.2.4

Fix

  • Fixed version 2.2.24
    pip install --upgrade django==2.2.24
  • Fixed version 3.1.12
    pip install --upgrade django==3.1.12
  • Fixed version 3.2.4
    pip install --upgrade django==3.2.4

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