Advisory

GHSA-p99v-5w3c-jqq9

Also known as: BIT-django-2021-33571, CVE-2021-33571, PYSEC-2021-99

Summary

Django Access Control Bypass possibly leading to SSRF, RFI, and LFI attacks

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

High Basis: The source's own band: HIGH

Dates

Published
2021-06-10 17:21 UTC
Modified
2024-09-20 16:08 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.2a1, fixed 2.2.24 (ecosystem)

Fixed versions

2.2.24

Fix

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

django

PyPI · All systems

Affected

  • introduced 3.0a1, fixed 3.1.12 (ecosystem)

Fixed versions

3.1.12

Fix

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

django

PyPI · All systems

Affected

  • introduced 3.2a1, fixed 3.2.4 (ecosystem)

Fixed versions

3.2.4

Fix

  • 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences