cve.bz

CVE-2024-27351 djangoproject django

5.3 mediumEPSS 1.9%Fix available

Medium (5.3) in djangoproject django. EPSS 1.9% estimated probability of exploitation activity in the next 30 days. Fixed in django 3.2.25, 4.2.11, 5.0.3.

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

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-04-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
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-2024-27351 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-27351?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-27351?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-2024-27351 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
djangoproject:djangofrom 3.2 before 3.2.25
djangoproject:djangofrom 4.2 before 4.2.11
djangoproject:djangofrom 5.0 before 5.0.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vm8q-m57g-pff3PyPIdjango>=3.2 <3.2.253.2.25
GHSA-vm8q-m57g-pff3PyPIdjango>=4.2 <4.2.114.2.11
GHSA-vm8q-m57g-pff3PyPIdjango>=5.0 <5.0.35.0.3
PYSEC-2024-47PyPIdjango>=3.2 <3.2.25
>=4.2 <4.2.11
>=5.0 <5.0.3
3.2.25, 4.2.11, 5.0.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python-django2:2.2.28-1~deb11u7DLA-4210-1
Debian12python-django3:3.2.25-0+deb12u1DEBIAN-CVE-2024-27351 DSA-6136-1
Debian13, 14python-django3:4.2.11-1DEBIAN-CVE-2024-27351
Ubuntu20.04:LTSpython-django2:2.2.12-1ubuntu0.22UBUNTU-CVE-2024-27351 USN-6674-1
Ubuntu22.04:LTSpython-django2:3.2.12-2ubuntu1.11UBUNTU-CVE-2024-27351 USN-6674-1
Ubuntu24.04:LTSpython-django3:4.2.11-1UBUNTU-CVE-2024-27351
UbuntuPro:14.04:LTS, Pro:16.04:LTSpython-djangono fix listedUBUNTU-CVE-2024-27351
UbuntuPro:18.04:LTSpython-django1:1.11.11-1ubuntu1.21+esm4UBUNTU-CVE-2024-27351 USN-6674-2
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.5.5-2.el8apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.5.7-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8automation-hub, python39-galaxy-ng, python3x-galaxy-ng0:4.9.2-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-aiohttp, python3x-aiohttp, python39-aiohttp-debuginfo and 1 more0:3.9.3-1.el8apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el8python39-aiohttp, python3x-aiohttp, python39-aiohttp-debuginfo and 1 more0:3.9.5-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-django, python3x-django0:4.2.11-1.el8apRHSA-2024:1640
Red Hatansible_automation_platform:2.4::el8python39-gunicorn, python3x-gunicorn0:22.0.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-pillow, python3x-pillow, python39-pillow-debuginfo and 1 more0:10.3.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-pydantic, python3x-pydantic0:1.10.15-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-social-auth-app-django, python3x-social-auth-app-django0:5.4.1-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-sqlparse, python3x-sqlparse0:0.5.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8python39-idna, python3x-idna0:3.7-1.el8apRHSA-2024:3781
34 more for Red Hat in the JSON and on Red Hat's page.
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev6-14.54.4SUSE-SU-2024:0875-1
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev6-14.56.1SUSE-SU-2024:1141-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-Django1.11.29-3.59.3SUSE-SU-2024:0875-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-Django1.11.29-3.62.1SUSE-SU-2024:1141-1
SUSEOpenStack Cloud 8venv-openstack-horizon12.0.5~dev6-14.54.5SUSE-SU-2024:0875-1
SUSEOpenStack Cloud 8venv-openstack-horizon12.0.5~dev6-14.56.1SUSE-SU-2024:1141-1
SUSEOpenStack Cloud 9venv-openstack-horizon14.1.1~dev11-4.51.4SUSE-SU-2024:0874-1
SUSEOpenStack Cloud 9venv-openstack-horizon14.1.1~dev11-4.53.1SUSE-SU-2024:1140-1
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-Django11.11.29-3.58.3SUSE-SU-2024:0874-1
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-Django11.11.29-3.61.1SUSE-SU-2024:1140-1
SUSEPackage Hub 15 SP5python-Django2.2.28-bp155.7.9.1openSUSE-SU-2024:0077-1
SUSEPackage Hub 15 SP5python-Django11.11.29-bp155.4.9.1openSUSE-SU-2024:0080-1
openSUSELeap 15.5python-Django2.0.7-150000.1.17.1SUSE-SU-2024:0902-1
openSUSELeap 15.5python-Django2.2.28-bp155.7.9.1openSUSE-SU-2024:0077-1
openSUSELeap 15.5python-Django11.11.29-bp155.4.9.1openSUSE-SU-2024:0080-1
openSUSETumbleweedpython-Django4.2.11-1.1openSUSE-SU-2024:13749-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.20, v3.21, v3.22 and 2 morepy3-django4.2.11-r0ALPINE-CVE-2024-27351

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.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.4 for RHEL 8python3x-django-0:4.2.11-1.el8apFixed 2024-04-02RHSA-2024:1640
Red Hat Ansible Automation Platform 2.4 for RHEL 8automation-controller-0:4.5.7-1.el8apFixed 2024-06-10RHSA-2024:3781
Red Hat Ansible Automation Platform 2.4 for RHEL 9python-django-0:4.2.11-1.el9apFixed 2024-04-02RHSA-2024:1640
Red Hat Ansible Automation Platform 2.4 for RHEL 9automation-controller-0:4.5.7-1.el9apFixed 2024-06-10RHSA-2024:3781
Red Hat OpenStack Platform 17.1 for RHEL 9python-django-0:2.2.24-9.el9ostFixed 2025-04-24RHSA-2025:4187
Red Hat Satellite 6.15 for RHEL 8python-django-0:4.2.14-1.el8pcFixed 2024-08-20RHSA-2024:5662
RHUI 4 for RHEL 8python-django-0:4.2.11-1.el8uiFixed 2024-04-18RHSA-2024:1878
Red Hat Ansible Automation Platform 1.2ansible-towerNot affected
Red Hat Certification for Red Hat Enterprise Linux 7python-djangoOut of support scope
Red Hat Certification for Red Hat Enterprise Linux 8redhat-certificationFix deferred
Red Hat Certification Program for Red Hat Enterprise Linux 9redhat-certificationFix deferred
Red Hat Discovery 1discovery-server-containerNot affected
Red Hat OpenStack Platform 16.1python-django20Out of support scope
Red Hat OpenStack Platform 16.2python-django20Will not fix
Red Hat OpenStack Platform 18.0python-djangoAffected
Red Hat Storage 3python-djangoOut of support scope

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-2024-27351.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

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

References

Check your stackJSON