Home / Canonical / Ubuntu Linux / CVE-2018-7537
CVE-2018-7537: is it exploited, and which versions of Canonical Ubuntu Linux are affected and fixed?
CVE-2018-7537 is an incorrect Regular Expression vulnerability in Canonical Ubuntu Linux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:38 UTC). Affected: Django from 2.0 before 2.0.3, Django from 1.11 before 1.11.11 and Django from 1.8 before 1.8.19 (GitHub advisory GHSA-2f9x-5v75-3qv4). Fixed in 2.0.3, 1.11.11 and 1.8.19 (GitHub advisory GHSA-2f9x-5v75-3qv4). Severity: Medium (5.3, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:34 UTC.
What is CVE-2018-7537?
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.
From the CVE record by mitre, last updated August 5, 2024, 06:31 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | Django | >= 2.0, < 2.0.3 | 2.0.3 | GHSA-2f9x-5v75-3qv4 |
| PyPI | Django | >= 1.11, < 1.11.11 | 1.11.11 | GHSA-2f9x-5v75-3qv4 |
| PyPI | Django | >= 1.8, < 1.8.19 | 1.8.19 | GHSA-2f9x-5v75-3qv4 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 18, 2024. Summary: Django Denial-of-service possibility in truncatechars_html and truncatewords_html template filters.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| canonical | ubuntu linux | 14.04 | operating system |
| canonical | ubuntu linux | 16.04 | operating system |
| canonical | ubuntu linux | 17.10 | operating system |
| djangoproject | django | from 1.8 before 1.8.19 | application |
| djangoproject | django | from 1.11 before 1.11.11 | application |
| djangoproject | django | from 2.0 before 2.0.3 | application |
| debian | debian linux | 7.0 | operating system |
| debian | debian linux | 8.0 | operating system |
| debian | debian linux | 9.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 02:03 UTC.
How severe is CVE-2018-7537?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-7537 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 4.37% probability of exploitation activity in the next 30 days, percentile 91.5 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-185 Incorrect Regular Expression
Where are the vendor advisories and references?
- USN-3591-1 vendor-advisory, x_refsource_UBUNTU
- [debian-lts-announce] 20180308 [SECURITY] [DLA 1303-1] python-django security update mailing-list, x_refsource_MLIST
- https://www.djangoproject.com/weblog/2018/mar/06/security-releases/ x_refsource_CONFIRM
- RHSA-2018:2927 vendor-advisory, x_refsource_REDHAT
- 103357 vdb-entry, x_refsource_BID
- RHSA-2019:0265 vendor-advisory, x_refsource_REDHAT
- DSA-4161 vendor-advisory, x_refsource_DEBIAN
When was it published, and where is the official record?
- Reserved
- February 26, 2018
- Published
- March 9, 2018, 20:00 UTC
- CVE record updated
- August 5, 2024, 06:31 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 02:03 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:34 UTC; KEV December 3, 2026, 07:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Ubuntu Linux?
- Apr 30, 2020CVE-2020-11652 Saltstack Salt: path traversal (reading or writing files outside the intended folder) exploited
- Apr 30, 2020CVE-2020-11651 Saltstack Salt: improper input validation exploited
- Jan 29, 2020CVE-2020-7247 Openbsd Opensmtpd: OS command injection exploited
- Sep 27, 2019CVE-2019-16928 Exim: out-of-bounds write (memory corruption) exploited
- Jul 17, 2019CVE-2019-13272 Linux Kernel: n/a exploited
- Feb 8, 2018CVE-2018-6789 Exim: buffer overflow exploited
- Nov 10, 2016CVE-2016-5195 Canonical Ubuntu Linux: race condition exploited
- May 5, 2016CVE-2016-3714 Imagemagick: improper input validation exploited
Questions about CVE-2018-7537
Is CVE-2018-7537 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:38 UTC. FIRST's EPSS gives it a 4.37% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Canonical Ubuntu Linux are affected by CVE-2018-7537?
Django from 2.0 before 2.0.3, Django from 1.11 before 1.11.11 and Django from 1.8 before 1.8.19, per the GitHub advisory GHSA-2f9x-5v75-3qv4. The tables above give every range the sources list.
Which version fixes CVE-2018-7537?
2.0.3, 1.11.11 and 1.8.19, per the GitHub advisory GHSA-2f9x-5v75-3qv4. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-7537?
Medium (5.3, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-7537?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.