cve.bz

CVE-2018-7536 Incorrect Regular Expression

5.3 mediumEPSS 4.6%Fix available

Medium (5.3). EPSS 4.6% estimated probability of exploitation activity in the next 30 days. Fixed in django 1.11.11, 1.8.19, 2.0.3.

On this page
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.

Severity

CVSS 3.0

5.3 medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
4.6% (unchanged from 4.6% a week ago; 4.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-185 Incorrect Regular Expression
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-7536 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-7536?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-7536?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-7536 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
djangoproject:djangofrom 1.8 before 1.8.19
djangoproject:djangofrom 1.11 before 1.11.11
djangoproject:djangofrom 2.0 before 2.0.3
debian:debian_linux7.0
debian:debian_linux8.0
debian:debian_linux9.0
redhat:openstack10
redhat:openstack13

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r28v-mw67-m5p9PyPIdjango>=2.0a1 <2.0.32.0.3
GHSA-r28v-mw67-m5p9PyPIdjango>=1.11a1 <1.11.111.11.11
GHSA-r28v-mw67-m5p9PyPIdjango>=1.8a1 <1.8.191.8.19
PYSEC-2018-5PyPIdjango>=1.8 <1.8.19
>=1.11 <1.11.11
>=2.0 <2.0.3
1.8.19, 1.11.11, 2.0.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7python-django1.4.22-1+deb7u4DLA-1303-1
Debian8python-django1.7.11-1+deb8u3DSA-4161-1
Debian9python-django1:1.10.7-2+deb9u1DSA-4161-1
Debian12, 13, 14python-django1:1.11.11-1DEBIAN-CVE-2018-7536
Ubuntu14.04:LTSpython-django1.6.11-0ubuntu1.2UBUNTU-CVE-2018-7536 USN-3591-1
Ubuntu16.04:LTSpython-django1.8.7-1ubuntu5.6UBUNTU-CVE-2018-7536 USN-3591-1
Red Hatopenstack:10::el7python-django, python-django-bash-completion0:1.8.19-1.el7ostRHSA-2019:0051
Red Hatopenstack:13::el7python-django, python2-django, python-django-bash-completion0:1.11.11-1.el7ostRHSA-2019:0082
Red Hatsatellite:6.4::el7foreman, foreman-cli, foreman-ec2 and 11 more0:1.18.0.37-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7pcp-mmvstatsd0:0.4-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7qpid-cpp, qpid-qmf, qpid-tools and 6 more0:1.36.0-19.el7RHSA-2018:2927
Red Hatsatellite:6.4::el7rubygem-foreman_scap_client0:0.3.0-3.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7rubygem-kafo_parsers, tfm-rubygem-hammer_cli_foreman_openscap0:0.1.6-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7rubygem-smart_proxy_dynflow, tfm-rubygem-get_process_mem, tfm-rubygem-smart_proxy_dynflow_core0:0.2.1-2.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7tfm-ror51-rubygem-crass0:1.0.2-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7tfm-ror51-rubygem-erubi0:1.7.0-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7tfm-ror51-rubygem-globalid0:0.4.1-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7tfm-ror51-rubygem-i18n0:0.9.1-2.el7satRHSA-2018:2927
201 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 4python-Django1.6.11-5.5.1SUSE-SU-2018:1828-1
SUSEEnterprise Storage 5python-Django1.6.11-6.5.1SUSE-SU-2018:1830-1
SUSEOpenStack Cloud 6python-Django1.8.19-3.6.1SUSE-SU-2018:1102-1
SUSEOpenStack Cloud 7python-Django1.8.19-3.4.1SUSE-SU-2018:0973-1
SUSEPackage Hub 12python-Django1.11.11-8.1openSUSE-SU-2018:0651-1
SUSEPackage Hub 12 SP1python-Django1.11.15-2.1openSUSE-SU-2023:0077-1
openSUSETumbleweedpython-Django3.2.7-2.3openSUSE-SU-2024:11205-1
openSUSETumbleweedpython-Django4.2.11-2.1openSUSE-SU-2024:13887-1
openSUSETumbleweedpython-Django5.2.16-1.1openSUSE-SU-2026:11248-1
openSUSETumbleweedpython-Django44.2.14-1.1openSUSE-SU-2024:14208-1
openSUSETumbleweedpython-Django44.2.30-4.1openSUSE-SU-2026:11235-1
openSUSETumbleweedpython-Django55.2.16-1.1openSUSE-SU-2026:11270-1
openSUSETumbleweedpython-Django66.0-1.1openSUSE-SU-2026:10005-1
Alpinev3.4, v3.5py-django1.8.19-r0ALPINE-CVE-2018-7536
Alpinev3.6, v3.7, v3.8 and 2 morepy-django1.11.11-r0ALPINE-CVE-2018-7536
Alpinev3.11, v3.12, v3.13 and 11 morepy3-django1.11.11-r0ALPINE-CVE-2018-7536

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the versions of django as shipped with Red Hat Subscription Asset Manager. Red Hat Product Security has rated this issue as having security impact of Moderate. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

ProductPackageStateAdvisory
Red Hat Gluster Storage 3.4 for RHEL 7graphite-web-0:1.1.4-1.el7rhgsFixed 2019-02-04RHSA-2019:0265
Red Hat Gluster Storage 3.4 for RHEL 7python-cachetools-0:1.0.3-1.1.el7rhgsFixed 2019-02-04RHSA-2019:0265
Red Hat Gluster Storage 3.4 for RHEL 7python-carbon-0:1.1.4-1.el7rhgsFixed 2019-02-04RHSA-2019:0265
Red Hat Gluster Storage 3.4 for RHEL 7python-django-0:1.11.15-4.el7rhgsFixed 2019-02-04RHSA-2019:0265
Red Hat Gluster Storage 3.4 for RHEL 7python-django-tagging-0:0.4.6-1.el7rhgsFixed 2019-02-04RHSA-2019:0265
Red Hat Gluster Storage 3.4 for RHEL 7python-scandir-0:1.3-1.el7rhgsFixed 2019-02-04RHSA-2019:0265
Red Hat Gluster Storage 3.4 for RHEL 7python-whisper-0:1.1.4-1.el7rhgsFixed 2019-02-04RHSA-2019:0265
Red Hat Gluster Storage 3.4 for RHEL 7tendrl-ansible-0:1.6.3-11.el7rhgsFixed 2019-02-04RHSA-2019:0265
Red Hat Gluster Storage 3.4 for RHEL 7tendrl-api-0:1.6.3-10.el7rhgsFixed 2019-02-04RHSA-2019:0265
Red Hat Gluster Storage 3.4 for RHEL 7tendrl-commons-0:1.6.3-15.el7rhgsFixed 2019-02-04RHSA-2019:0265
Red Hat Ceph Storage 1.3python-djangoWill not fix
Red Hat Ceph Storage 2python-djangoWill not fix
Red Hat Ceph Storage 3python-djangoWill not fix
Red Hat Enterprise Linux OpenStack Platform 6 (Juno)python-djangoWill not fix
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo)python-djangoWill not fix
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) Operational Toolspython-djangoWill not fix
Red Hat OpenStack Platform 11 (Ocata)python-djangoWill not fix
Red Hat OpenStack Platform 12 (Pike)python-djangoAffected
Red Hat OpenStack Platform 8 (Liberty)python-djangoWill not fix
Red Hat OpenStack Platform 8 (Liberty) Operational Toolspython-djangoWill not fix
326 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-7536.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON