CVE-2024-27351Djangoproject Django
Medium 5.3 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 2.4% probability of exploitation in 30 days · percentile 84
- Auth required
- No
- Published
- Mar 15, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
In Django 3.2 before 3.2.25, 4.2 before 4.2.11, and 5.0 before 5.0.3, the django.utils.text.Truncator.words() method (with html=True) and the truncatewords_html template filter are subject to a potential regular expression denial-of-service attack via a crafted string. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232 and CVE-2023-43665.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 3.2 < 3.2.25 |
3.2.25 |
pip install "django>=3.2.25" |
| PyPI | django |
≥ 4.2 < 4.2.11 |
4.2.11 |
pip install "django>=4.2.11" |
| PyPI | django |
≥ 5.0 < 5.0.3 |
5.0.3 |
pip install "django>=5.0.3" |
| PyPI | django |
≥ 3.2 < 3.2.25 |
3.2.25 |
pip install "django>=3.2.25" |
| PyPI | django |
≥ 4.2 < 4.2.11 |
4.2.11 |
pip install "django>=4.2.11" |
| PyPI | django |
≥ 5.0 < 5.0.3 |
5.0.3 |
pip install "django>=5.0.3" |
Per OSV / GitHub Advisories (GHSA-vm8q-m57g-pff3, PYSEC-2024-47). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 3.2 < 3.2.25 |
| djangoproject | django | ≥ 4.2 < 4.2.11 |
| djangoproject | django | ≥ 5.0 < 5.0.3 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python313-Django-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11248-1 · Jul 10, 2026 Critical
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · Jul 9, 2026 Critical
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List
- docs.djangoproject.com Release Notes Vendor Advisory
- groups.google.com Permissions Required
- lists.fedoraproject.org Broken Link
- lists.fedoraproject.org Broken Link
- lists.fedoraproject.org Broken Link
- www.djangoproject.com Vendor Advisory
- github.com Patch
- github.com Patch
- github.com Patch
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org