cve.bz

CVE-2024-45230 djangoproject django: Classic Buffer Overflow

7.5 highEPSS 26%Fix available

High (7.5) in djangoproject django. EPSS 26% estimated probability of exploitation activity in the next 30 days. Fixed in django 4.2.16, 5.0.9, 5.1.1.

On this page
An issue was discovered in Django 5.1 before 5.1.1, 5.0 before 5.0.9, and 4.2 before 4.2.16. The urlize() and urlizetrunc() template filters are subject to a potential denial-of-service attack via very large inputs with a specific sequence of characters.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
26% (unchanged from 26% a week ago; 26% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th 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: yes · Technical impact: partial, assessed 2024-10-30. 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-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
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-45230 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-45230?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-45230?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-45230 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 4.2.0 before 4.2.16
djangoproject:djangofrom 5.0 before 5.0.9
djangoproject:django5.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5hgc-2vfp-mqvcPyPIdjango>=5.1 <5.1.15.1.1
GHSA-5hgc-2vfp-mqvcPyPIdjango>=5.0 <5.0.95.0.9
GHSA-5hgc-2vfp-mqvcPyPIdjango>=4.2 <4.2.164.2.16
PYSEC-2024-102PyPIdjango>=5.1 <5.1.1
>=5.0 <5.0.9
>=4.2 <4.2.16
5.1.1, 5.0.9, 4.2.16

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-djangono fix listedDEBIAN-CVE-2024-45230
Debian13, 14python-django3:4.2.16-1DEBIAN-CVE-2024-45230
Ubuntu20.04:LTSpython-django2:2.2.12-1ubuntu0.25UBUNTU-CVE-2024-45230 USN-6987-1
Ubuntu22.04:LTSpython-django2:3.2.12-2ubuntu1.14UBUNTU-CVE-2024-45230 USN-6987-1
Ubuntu24.04:LTSpython-django3:4.2.11-1ubuntu1.3UBUNTU-CVE-2024-45230 USN-6987-1
UbuntuPro:14.04:LTS, Pro:16.04:LTSpython-djangono fix listedUBUNTU-CVE-2024-45230
UbuntuPro:18.04:LTSpython-django1:1.11.11-1ubuntu1.21+esm7UBUNTU-CVE-2024-45230 USN-6987-1
Red Hatansible_automation_platform:2.5::el8automation-controller-venv-tower0:4.6.2-1.el8apRHSA-2024:8534
Red Hatansible_automation_platform:2.5::el8automation-gateway-server0:2.5.3-1.el8apRHSA-2024:8534
Red Hatansible_automation_platform:2.5::el8receptor, receptorctl, receptor-debuginfo and 1 more0:1.4.9-2.el8apRHSA-2024:8534
Red Hatansible_automation_platform:2.5::el9automation-controller-venv-tower0:4.6.2-1.el9apRHSA-2024:8534
Red Hatansible_automation_platform:2.5::el9automation-gateway-server0:2.5.3-1.el9apRHSA-2024:8534
Red Hatansible_automation_platform:2.5::el9receptor, receptorctl, receptor-debuginfo and 1 more0:1.4.9-2.el9apRHSA-2024:8534
Red Hatansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8receptor, receptorctl0:1.4.9-2.el8apRHSA-2024:8534
Red Hatansible_automation_platform_developer:2.5::el9, ansible_automation_platform_inside:2.5::el9receptor, receptorctl0:1.4.9-2.el9apRHSA-2024:8534
SUSELinux Enterprise Module for Package Hub 15 SP6python-Django4.2.11-150600.3.9.1SUSE-SU-2024:3161-1
SUSEPackage Hub 15 SP5python-Django2.2.28-bp155.7.18.1openSUSE-SU-2024:0282-1
openSUSELeap 15.5python-Django2.0.7-150000.1.33.1SUSE-SU-2024:3139-1
openSUSELeap 15.5python-Django2.0.7-150000.1.36.1SUSE-SU-2024:3187-1
openSUSELeap 15.5python-Django2.2.28-bp155.7.18.1openSUSE-SU-2024:0282-1
openSUSELeap 15.6python-Django4.2.11-150600.3.9.1SUSE-SU-2024:3161-1
openSUSETumbleweedpython-Django5.1.1-1.1openSUSE-SU-2024:14318-1
openSUSETumbleweedpython-Django5.2.16-1.1openSUSE-SU-2026:11248-1
openSUSETumbleweedpython-Django44.2.16-1.1openSUSE-SU-2024:14310-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.16-r0ALPINE-CVE-2024-45230

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

CVE-2024-45230 is classified as a moderate severity vulnerability because, while it presents a potential denial-of-service (DoS) risk, it does not directly expose the application to data breaches or arbitrary code execution. The vulnerability arises from inefficient handling of very large inputs with specific character sequences in the `urlize()` and `urlizetrunc()` functions. However, the attack requires carefully crafted input and only leads to resource exhaustion (such as CPU or memory overload) under specific conditions, making it less likely to be exploited in typical production environments. This reduces its impact compared to vulnerabilities that allow unauthorized access or significant system compromise, hence the moderate severity rating.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8automation-controller-0:4.6.2-1.el8apFixed 2024-10-28RHSA-2024:8534
Red Hat Ansible Automation Platform 2.5 for RHEL 9automation-controller-0:4.6.2-1.el9apFixed 2024-10-28RHSA-2024:8534
Red Hat Ansible Automation Platform 1.2ansible-towerWill not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-dellemc-openmanage-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-rhel8Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/platform-resource-runner-rhel8Not affected
Red Hat Ansible Automation Platform 2python-djangoAffected
Red Hat Certification for Red Hat Enterprise Linux 7python-djangoFix deferred
Red Hat Discovery 1discovery-server-containerAffected
Red Hat OpenStack Platform 16.2python-django20Will not fix
Red Hat OpenStack Platform 17.1python-djangoFix deferred
Red Hat Satellite 6python-djangoNot affected
Red Hat Storage 3python-djangoOut of support scope
Red Hat Update Infrastructure 4 for Cloud Providerspython-djangoNot affected

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-45230.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON