CVE-2018-7537: canonical ubuntu_linux Incorrect Regular Expression
Vulnerability summary
CVE-2018-7537 is a medium (CVSS 5.3) Incorrect Regular Expression vulnerability in canonical ubuntu_linux. EPSS estimates a 4.37% chance of exploitation in the next 30 days, higher than 91.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 19 · Related 14Timeline
- 09-03-2018PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 5 sources · 3 versions- OSV · AlpineEcosystem advisory · calculated5.3MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · PypiEcosystem advisory · calculated5.3MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
4.37%
Chance of exploitation in the next 30 days
Percentile
91%
Versus all other CVEs
30-day change
0.00 pp
From 4.37% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Alpine2 products
- py-django< 1.11.11-r0 | < 1.8.19-r0
- py3-django< 1.11.11-r0
Debian2 products
- python-django< 1:1.11.11-1
- debian_linuxEOL7.0 | 8.0 | 9.0
Canonical1 product
- ubuntu_linuxEOL14.04 | 16.04 | 17.10
Djangoproject1 product
- django≥ 1.8, < 1.8.19 | ≥ 1.11, < 1.11.11 | ≥ 2.0, < 2.0.3
PyPI1 product
- django≥ 1.11, < 1.11.11 | ≥ 1.8, < 1.8.19 | ≥ 2.0, < 2.0.3
Ubuntu1 product
- python-django< 1.6.11-0ubuntu1.2 | < 1.8.7-1ubuntu5.6
6 vendors · 8 products
References
21 links- lists.debian.org/debian-lts-announce/2018/03/msg00006.htmlMailing ListX Refsource MLISTThird Party AdvisoryWEB
- www.djangoproject.com/weblog/2018/mar/06/security-releases/X Refsource CONFIRMRelease NotesVendor AdvisoryARTICLEREPORT
- access.redhat.com/errata/RHSA-2018:2927Vendor AdvisoryX Refsource REDHATThird Party AdvisoryWEBAdvisory
- access.redhat.com/errata/RHSA-2019:0265Vendor AdvisoryX Refsource REDHATThird Party AdvisoryWEBAdvisory
- www.debian.org/security/2018/dsa-4161Vendor AdvisoryX Refsource DEBIANThird Party AdvisoryWEBAdvisory
Show all 21 references
- github.com/django/djangoPACKAGE