
CVE catalog
CVE-2018-7537
python-django: CVE-2018-7537
- Severity
- Medium · CVSS 5.3
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 4.37% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-django | sid | 3:5.2.18-1 | fixed |
| Debian | python-django | forky | 3:5.2.17-2 | fixed |
| Debian | python-django | trixie | 3:4.2.28-0+deb13u2 | fixed |
| Debian | python-django | trixie-security | 3:4.2.28-0+deb13u1 | fixed |
| Debian | python-django | bookworm | 3:3.2.25-0+deb12u3 | fixed |
| Debian | python-django | bookworm-security | 3:3.2.25-0+deb12u6 | fixed |
| Ubuntu | python-django | 14.04 | 1.5.4-1ubuntu1 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6-1 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-1 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.1 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.2 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.3 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.4 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.5 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.6 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.8 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.9 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.10 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.11 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.12 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.13 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.14 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.15 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.1-2ubuntu0.16 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.11-0ubuntu1 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.11-0ubuntu1.1 | vulnerable |
| Ubuntu | python-django | 14.04 | 1.6.11-0ubuntu1.2 | fixed |
| Ubuntu | python-django | 16.04 | 1.7.9-1ubuntu5 | vulnerable |
| Ubuntu | python-django | 16.04 | 1.8.5-2ubuntu1 | vulnerable |
| Ubuntu | python-django | 16.04 | 1.8.7-1ubuntu1 | vulnerable |
| Ubuntu | python-django | 16.04 | 1.8.7-1ubuntu2 | vulnerable |
| Ubuntu | python-django | 16.04 | 1.8.7-1ubuntu3 | vulnerable |
| Ubuntu | python-django | 16.04 | 1.8.7-1ubuntu4 | vulnerable |
| Ubuntu | python-django | 16.04 | 1.8.7-1ubuntu5 | vulnerable |
| Ubuntu | python-django | 16.04 | 1.8.7-1ubuntu5.1 | vulnerable |
| Ubuntu | python-django | 16.04 | 1.8.7-1ubuntu5.2 | vulnerable |
| Ubuntu | python-django | 16.04 | 1.8.7-1ubuntu5.4 | vulnerable |
| Ubuntu | python-django | 16.04 | 1.8.7-1ubuntu5.5 | vulnerable |
| Ubuntu | python-django | 16.04 | 1.8.7-1ubuntu5.6 | fixed |
| Alpine | py-django | 3.10 | 1.11.11-r0 | fixed |
| Alpine | py-django | 3.4 | 1.8.19-r0 | fixed |
| Alpine | py-django | 3.5 | 1.8.19-r0 | fixed |
| Alpine | py-django | 3.6 | 1.11.11-r0 | fixed |
| Alpine | py-django | 3.7 | 1.11.11-r0 | fixed |
| Alpine | py-django | 3.8 | 1.11.11-r0 | fixed |
| Alpine | py-django | 3.9 | 1.11.11-r0 | fixed |
| Alpine | py3-django | 3.11 | 1.11.11-r0 | fixed |
| Alpine | py3-django | 3.12 | 1.11.11-r0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-django | source | sid | 1:1.11.11-1 | not yet assigned | Not reported | Not reported |
| Debian | python-django | source | forky | 1:1.11.11-1 | not yet assigned | Not reported | Not reported |
| Debian | python-django | source | trixie | 1:1.11.11-1 | not yet assigned | Not reported | Not reported |
| Debian | python-django | source | bookworm | 1:1.11.11-1 | not yet assigned | Not reported | Not reported |
| Ubuntu | python-django | deb | 14.04 | 1.6.11-0ubuntu1.2 | Not reported | UBUNTU-CVE-2018-7537 | Not reported |
| Ubuntu | python-django | deb | 16.04 | 1.8.7-1ubuntu5.6 | Not reported | UBUNTU-CVE-2018-7537 | Not reported |
| Alpine | py-django | apk | 3.10 | 1.11.11-r0 | Not reported | ALPINE-CVE-2018-7537 | Not reported |
| Alpine | py-django | apk | 3.4 | 1.8.19-r0 | Not reported | ALPINE-CVE-2018-7537 | Not reported |
| Alpine | py-django | apk | 3.5 | 1.8.19-r0 | Not reported | ALPINE-CVE-2018-7537 | Not reported |
| Alpine | py-django | apk | 3.6 | 1.11.11-r0 | Not reported | ALPINE-CVE-2018-7537 | Not reported |
| Alpine | py-django | apk | 3.7 | 1.11.11-r0 | Not reported | ALPINE-CVE-2018-7537 | Not reported |
| Alpine | py-django | apk | 3.8 | 1.11.11-r0 | Not reported | ALPINE-CVE-2018-7537 | Not reported |
| Alpine | py-django | apk | 3.9 | 1.11.11-r0 | Not reported | ALPINE-CVE-2018-7537 | Not reported |
| Alpine | py3-django | apk | 3.11 | 1.11.11-r0 | Not reported | ALPINE-CVE-2018-7537 | Not reported |
| Alpine | py3-django | apk | 3.12 | 1.11.11-r0 | Not reported | ALPINE-CVE-2018-7537 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [python3-django]Unknown
Source package: [python-django]
Details (6)
3:3.2.25-0+deb12u3· all · bookwormFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
3:3.2.25-0+deb12u3· all · bookwormFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
3:4.2.21-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
3:4.2.21-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
3:3.2.25-0+deb12u4· all · bookworm-securityFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
3:3.2.25-0+deb12u4· all · bookworm-securityFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
- [python-django-doc]Unknown
Source package: [python-django]
Details (6)
3:3.2.25-0+deb12u3· all · bookwormFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
3:3.2.25-0+deb12u3· all · bookwormFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
3:4.2.21-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
3:4.2.21-1~bpo12+1· all · bookworm-backportsFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
3:3.2.25-0+deb12u4· all · bookworm-securityFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
3:3.2.25-0+deb12u4· all · bookworm-securityFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · bookworm; dsa · python-django · debian · 12
[Debian 13 (Trixie)]
- [python3-django]Unknown
Source package: [python-django]
Details (6)
3:4.2.28-0+deb13u2· all · trixieFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
3:4.2.28-0+deb13u2· all · trixieFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
- [python-django-doc]Unknown
Source package: [python-django]
Details (6)
3:4.2.28-0+deb13u2· all · trixieFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
3:4.2.28-0+deb13u2· all · trixieFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityFixed · Fixed:
1:1.11.11-1dsa · python-django · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2018_0973-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2018-7537]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-7537]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-7537]
- [https://security-tracker.debian.org/tracker/CVE-2018-7537]
- [https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-7537.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]