Feed
5.3MEDIUM
CVE-2018-7537Django Denial-of-service possibility in truncatechars_html and truncatewords_html template filters
A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 4.4% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 4.4%
- percentile 92%
- Fix
- Named by a source
- CVE published 9 Mar 2018 (approx.)
Reference
None of the "Needs attention" rules apply right now.
EPSS 4.4% (+4) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 2.0.3 / 1.11.11 / 1.8.19 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/94c5da1d17a6b0d378866c66b605102c19f7988c
- Commit / pull request: https://github.com/django/django/commit/a91436360b79a6ff995c3e5018bcc666dfaf1539
- Commit / pull request: https://github.com/django/django/commit/d17974a287a6ea2e361daff88fcc004cbd6835fa
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 2.0, < 2.0.3Fixed in2.0.3OSV (PYSEC-2018-6)
- Affected>= 1.11, < 1.11.11Fixed in1.11.11OSV (PYSEC-2018-6)
- Affected>= 1.8, < 1.8.19Fixed in1.8.19OSV (PYSEC-2018-6)
Confirmed facts
- CVSS
- 5.3 MEDIUM (version 3.0)
- Score from
- GitHub Advisory Database (GHSA-2f9x-5v75-3qv4)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-185
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2018-7537
- commit / pull requesthttps://github.com/django/django/commit/94c5da1d17a6b0d378866c66b605102c19f7988c
- commit / pull requesthttps://github.com/django/django/commit/a91436360b79a6ff995c3e5018bcc666dfaf1539
- commit / pull requesthttps://github.com/django/django/commit/d17974a287a6ea2e361daff88fcc004cbd6835fa
- advisoryhttps://access.redhat.com/errata/RHSA-2018:2927
- advisoryhttps://access.redhat.com/errata/RHSA-2019:0265
- advisoryhttps://github.com/advisories/GHSA-2f9x-5v75-3qv4
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2018-6.yaml
- otherhttps://lists.debian.org/debian-lts-announce/2018/03/msg00006.html
- otherhttps://usn.ubuntu.com/3591-1
- advisoryhttps://www.debian.org/security/2018/dsa-4161
- otherhttps://www.djangoproject.com/weblog/2018/mar/06/security-releases
- otherhttps://www.djangoproject.com/weblog/2018/mar/06/security-releases/
- otherhttp://www.securityfocus.com/bid/103357
- otherhttps://usn.ubuntu.com/3591-1/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-2f9x-5v75-3qv4 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2018-6 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 19 min ago · osv 19 min ago · nvd 19 min ago · epss 18 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-2f9x-5v75-3qv4, PYSEC-2018-6