Advisory

PYSEC-2019-11

Also known as: CVE-2019-14232, GHSA-c4qh-4vgv-qc6g

Summary

The record has no summary.

Details

An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. If django.utils.text.Truncator's chars() and words() methods were passed the html=True argument, they were extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which were thus vulnerable.

Severity

Not rated by the source.

Dates

Published
2019-08-02 15:15 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 1.11, fixed 1.11.23, introduced 2.1, fixed 2.1.11, introduced 2.2, fixed 2.2.4 (ecosystem)

Fixed versions

1.11.23, 2.1.11, 2.2.4

Fix

  • Fixed version 1.11.23
    pip install --upgrade django==1.11.23
  • Fixed version 2.1.11
    pip install --upgrade django==2.1.11
  • Fixed version 2.2.4
    pip install --upgrade django==2.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