CVE catalog

CVE-2018-7537

python-django: CVE-2018-7537

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS: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.

DistributionPackageReleaseVersionStatus
Debianpython-djangosid3:5.2.18-1fixed
Debianpython-djangoforky3:5.2.17-2fixed
Debianpython-djangotrixie3:4.2.28-0+deb13u2fixed
Debianpython-djangotrixie-security3:4.2.28-0+deb13u1fixed
Debianpython-djangobookworm3:3.2.25-0+deb12u3fixed
Debianpython-djangobookworm-security3:3.2.25-0+deb12u6fixed
Ubuntupython-django14.041.5.4-1ubuntu1vulnerable
Ubuntupython-django14.041.6-1vulnerable
Ubuntupython-django14.041.6.1-1vulnerable
Ubuntupython-django14.041.6.1-2vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.1vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.2vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.3vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.4vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.5vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.6vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.8vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.9vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.10vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.11vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.12vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.13vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.14vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.15vulnerable
Ubuntupython-django14.041.6.1-2ubuntu0.16vulnerable
Ubuntupython-django14.041.6.11-0ubuntu1vulnerable
Ubuntupython-django14.041.6.11-0ubuntu1.1vulnerable
Ubuntupython-django14.041.6.11-0ubuntu1.2fixed
Ubuntupython-django16.041.7.9-1ubuntu5vulnerable
Ubuntupython-django16.041.8.5-2ubuntu1vulnerable
Ubuntupython-django16.041.8.7-1ubuntu1vulnerable
Ubuntupython-django16.041.8.7-1ubuntu2vulnerable
Ubuntupython-django16.041.8.7-1ubuntu3vulnerable
Ubuntupython-django16.041.8.7-1ubuntu4vulnerable
Ubuntupython-django16.041.8.7-1ubuntu5vulnerable
Ubuntupython-django16.041.8.7-1ubuntu5.1vulnerable
Ubuntupython-django16.041.8.7-1ubuntu5.2vulnerable
Ubuntupython-django16.041.8.7-1ubuntu5.4vulnerable
Ubuntupython-django16.041.8.7-1ubuntu5.5vulnerable
Ubuntupython-django16.041.8.7-1ubuntu5.6fixed
Alpinepy-django3.101.11.11-r0fixed
Alpinepy-django3.41.8.19-r0fixed
Alpinepy-django3.51.8.19-r0fixed
Alpinepy-django3.61.11.11-r0fixed
Alpinepy-django3.71.11.11-r0fixed
Alpinepy-django3.81.11.11-r0fixed
Alpinepy-django3.91.11.11-r0fixed
Alpinepy3-django3.111.11.11-r0fixed
Alpinepy3-django3.121.11.11-r0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-djangosourcesid1:1.11.11-1not yet assignedNot reportedNot reported
Debianpython-djangosourceforky1:1.11.11-1not yet assignedNot reportedNot reported
Debianpython-djangosourcetrixie1:1.11.11-1not yet assignedNot reportedNot reported
Debianpython-djangosourcebookworm1:1.11.11-1not yet assignedNot reportedNot reported
Ubuntupython-djangodeb14.041.6.11-0ubuntu1.2Not reportedUBUNTU-CVE-2018-7537Not reported
Ubuntupython-djangodeb16.041.8.7-1ubuntu5.6Not reportedUBUNTU-CVE-2018-7537Not reported
Alpinepy-djangoapk3.101.11.11-r0Not reportedALPINE-CVE-2018-7537Not reported
Alpinepy-djangoapk3.41.8.19-r0Not reportedALPINE-CVE-2018-7537Not reported
Alpinepy-djangoapk3.51.8.19-r0Not reportedALPINE-CVE-2018-7537Not reported
Alpinepy-djangoapk3.61.11.11-r0Not reportedALPINE-CVE-2018-7537Not reported
Alpinepy-djangoapk3.71.11.11-r0Not reportedALPINE-CVE-2018-7537Not reported
Alpinepy-djangoapk3.81.11.11-r0Not reportedALPINE-CVE-2018-7537Not reported
Alpinepy-djangoapk3.91.11.11-r0Not reportedALPINE-CVE-2018-7537Not reported
Alpinepy3-djangoapk3.111.11.11-r0Not reportedALPINE-CVE-2018-7537Not reported
Alpinepy3-djangoapk3.121.11.11-r0Not reportedALPINE-CVE-2018-7537Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

  • Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

[Debian 13 (Trixie)]

  • Source package: [python-django]

    Details (6)
    • 3:4.2.28-0+deb13u2 · all · trixie

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u2 · all · trixie

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

  • Source package: [python-django]

    Details (6)
    • 3:4.2.28-0+deb13u2 · all · trixie

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u2 · all · trixie

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 1:1.11.11-1

      dsa · python-django · debian · 13

Observed:

References