CVE-2024-27351

python-django: Potential regular expression denial-of-service in django.utils.text.Truncator.words()

Published Mar 15, 2024 CVSS 3.1 · 5.3 Medium EPSS 1.9% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4210-1 python-django security update
Debian DSA Debian DSA DSA-6136-1 python-django security update
Github GHSA Github GHSA GHSA-vm8q-m57g-pff3 Regular expression denial-of-service in Django
Ubuntu USN Ubuntu USN USN-6674-1 Django vulnerability
Ubuntu USN Ubuntu USN USN-6674-2 Django vulnerability
History
Type Values Removed Values Added
First Time appeared Djangoproject
Djangoproject django
CPEs cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
Vendors & Products Djangoproject
Djangoproject django
Type Values Removed Values Added
Metrics epss

{'score': 0.00802}

epss

{'score': 0.00824}

Type Values Removed Values Added
First Time appeared Redhat openstack
CPEs cpe:/a:redhat:openstack:17.1::el9
Vendors & Products Redhat openstack
Type Values Removed Values Added
First Time appeared Redhat satellite
Redhat satellite Capsule
CPEs cpe:/a:redhat:satellite:6.15::el8
cpe:/a:redhat:satellite_capsule:6.15::el8
Vendors & Products Redhat satellite
Redhat satellite Capsule
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 4, 2025, 6:30 PM
Reserved
Feb 25, 2024, 12:00 AM
Status
Modified
Published
Mar 15, 2024, 8:15 PM
Modified
Jun 17, 2026, 7:19 AM
Severity
Moderate
Public date
Mar 4, 2024, 9:00 AM