{"id":"CVE-2018-7536","published":"2018-03-09T00:00:00Z","modified":"2024-08-05T06:31:04Z","title":"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","vendor":null,"product":null,"tier":"tail","description":{"text":"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. The django.utils.html.urlize() function was extremely slow to evaluate certain inputs due to catastrophic backtracking vulnerabilities in two regular expressions (only one regular expression for Django 1.8.x). The urlize() function is used to implement the urlize and urlizetrunc template filters, which were thus vulnerable.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04554,"percentile":0.91807,"provenance":"source"},"cwes":[],"references":[{"url":"https://usn.ubuntu.com/3591-1/","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2019:0051","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/03/msg00006.html","tags":["mailing-list"]},{"url":"http://www.securityfocus.com/bid/103361","tags":["vdb-entry"]},{"url":"https://www.djangoproject.com/weblog/2018/mar/06/security-releases/","tags":[]},{"url":"https://access.redhat.com/errata/RHSA-2019:0082","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2927","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2019:0265","tags":["vendor-advisory"]},{"url":"https://www.debian.org/security/2018/dsa-4161","tags":["vendor-advisory"]},{"url":"https://github.com/django/django/commit/1ca63a66ef3163149ad822701273e8a1844192c2","tags":[]},{"url":"https://github.com/django/django/commit/abf89d729f210c692a50e0ad3f75fb6bec6fae16","tags":[]},{"url":"https://github.com/django/django/commit/e157315da3ae7005fa0683ffc9751dbeca7306c8","tags":[]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":18.36}]},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=2.0a1, <2.0.3",">=1.11a1, <1.11.11",">=1.8a1, <1.8.19",">=1.8, <1.8.19",">=1.11, <1.11.11",">=2.0, <2.0.3"],"patched":["2.0.3","1.11.11","1.8.19"],"from":["GHSA-r28v-mw67-m5p9","PYSEC-2018-5"],"provenance":"source"}],"summary":{"text":"The flaw is a catastrophic backtracking weakness in two regular expressions used by the django.utils.html.urlize() function in Django, affecting versions 2.0 before 2.0.3, 1.11 before 1.11.11, and 1.8 before 1.8.19. Because urlize() underpins the urlize and urlizetrunc template filters, those filters are affected as well. An attacker who can supply crafted input to these filters can cause extremely slow evaluation of that input, resulting in a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:17:04Z"},"euvd":{"id":"EUVD-2018-0040","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-django-cve-2018-7536","children":[{"from":"CVE-2018-7536","to":"CVE-2024-41990","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["django/utils/html.py"],"commits":["https://github.com/django/django/commit/1ca63a66ef3163149ad822701273e8a1844192c2","https://github.com/django/django/commit/abf89d729f210c692a50e0ad3f75fb6bec6fae16","https://github.com/django/django/commit/7b7b909579c8311c140c89b8a9431bf537febf93","https://github.com/django/django/commit/d0a82e26a74940bf0c78204933c3bdd6a283eb88"],"basis":"shared function","functions":["trim_punctuation"]},{"kind":"similar","provenance":"machine","score":0.55,"basis":"same package + description similarity"}]},{"from":"CVE-2018-7536","to":"CVE-2024-45230","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["django/utils/html.py"],"commits":["https://github.com/django/django/commit/1ca63a66ef3163149ad822701273e8a1844192c2","https://github.com/django/django/commit/abf89d729f210c692a50e0ad3f75fb6bec6fae16","https://github.com/django/django/commit/022ab0a75c76ab2ea31dfcc5f2cf5501e378d397","https://github.com/django/django/commit/813de2672bd7361e9a453ab62cd6e52f96b6525b"],"basis":"shared function","functions":["trim_punctuation"]},{"kind":"similar","provenance":"machine","score":0.55,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2017-7233","published":"2017-04-04","fixed":"1.10.7","kev":false,"link":{"from":"CVE-2017-7233","to":"CVE-2018-7536","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"1.8.18","toFixed":"1.8.19","daysApart":339}]}},{"cve":"CVE-2017-7234","published":"2017-04-04","fixed":"1.10.7","kev":false},{"cve":"CVE-2017-12794","published":"2017-09-07","fixed":"1.11.5","kev":false},{"cve":"CVE-2018-6188","published":"2018-02-05","fixed":"2.0.2","kev":false,"link":{"from":"CVE-2018-6188","to":"CVE-2018-7536","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"1.11.10","toFixed":"1.11.11","daysApart":32},{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"2.0.2","toFixed":"2.0.3","daysApart":32}]}},{"cve":"CVE-2018-7536","published":"2018-03-09","fixed":"2.0.3","kev":false},{"cve":"CVE-2018-7537","published":"2018-03-09","fixed":"2.0.3","kev":false},{"cve":"CVE-2018-14574","published":"2018-08-03","fixed":"2.0.8","kev":false,"link":{"from":"CVE-2018-7536","to":"CVE-2018-14574","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"1.11.11","toFixed":"1.11.15","daysApart":147},{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"2.0.3","toFixed":"2.0.8","daysApart":147}]}},{"cve":"CVE-2018-16984","published":"2018-10-02","fixed":"2.1.2","kev":false}],"package":"PyPI:Django"}}