Advisory

PYSEC-2018-5

Also known as: CVE-2018-7536, GHSA-r28v-mw67-m5p9

Summary

The record has no summary.

Details

An issue was discovered in Django 2.0 before 2.0.3, 1.11 before 1.11.11, and 1.8 before 1.8.19. The django.utils.html.urlize() function was extremely slow to evaluate certain inputs due to catastrophic backtracking vulnerabilities in two regular expressions (only one regular expression for Django 1.8.x). The urlize() function is used to implement the urlize and urlizetrunc template filters, which were thus vulnerable.

Severity

Not rated by the source.

Dates

Published
2018-03-09 20:29 UTC
Modified
2023-11-08 04:00 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 1.8, fixed 1.8.19, introduced 1.11, fixed 1.11.11, introduced 2.0, fixed 2.0.3 (ecosystem)

Fixed versions

1.8.19, 1.11.11, 2.0.3

Fix

  • Fixed version 1.8.19
    pip install --upgrade django==1.8.19
  • Fixed version 1.11.11
    pip install --upgrade django==1.11.11
  • Fixed version 2.0.3
    pip install --upgrade django==2.0.3

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