cve.bz

CVE-2018-7537

5.3 mediumEPSS 4.4%

Medium (5.3). EPSS 4.4% chance of exploitation in the next 30 days. Fixed in django 1.11.11, 1.8.19, 2.0.3.

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. 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

CVSS 3.0

5.3 medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
4.4% chance of exploitation in the next 30 days; higher than 91% of CVEs (scores of 2026-10-31)
CWE
CWE-185
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2f9x-5v75-3qv4PyPIdjango>=2.0 <2.0.32.0.3
GHSA-2f9x-5v75-3qv4PyPIdjango>=1.11 <1.11.111.11.11
GHSA-2f9x-5v75-3qv4PyPIdjango>=1.8 <1.8.191.8.19
PYSEC-2018-6PyPIdjango>=1.8 <1.8.19
>=1.11 <1.11.11
>=2.0 <2.0.3
1.8.19, 1.11.11, 2.0.3

References

Check your stackJSON