PT-2024-6154 · Django+5 · Django+5

Elias Myllymäki

·

Published

2024-07-31

·

Updated

2026-01-03

·

CVE-2024-41989

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions Django versions 4.2 through 4.2.14 Django versions 5.0 through 5.0.7
Description The issue is related to the floatformat() function in Django, which can lead to uncontrolled resource consumption. This can be exploited by a remote attacker to cause a denial of service. The floatformat template filter is subject to significant memory consumption when given a string representation of a number in scientific notation with a large exponent.
Recommendations For Django versions 4.2 through 4.2.14, update to version 4.2.15 or later. For Django versions 5.0 through 5.0.7, update to version 5.0.8 or later. As a temporary workaround, consider restricting the use of the floatformat template filter to minimize the risk of exploitation. Avoid using the floatformat filter with input strings that contain large exponents in scientific notation until the issue is resolved.

Fix

Resource Exhaustion

Weakness Enumeration

Related Identifiers

ALT-PU-2024-15283
ALT-PU-2025-10176
BDU:2024-07073
BIT-DJANGO-2024-41989
CVE-2024-41989
GHSA-JH75-99HH-QVX9
MGASA-2025-0039
OESA-2024-2002
OESA-2024-2003
OESA-2024-2004
OESA-2024-2036
OESA-2024-2280
OPENSUSE-SU-2024:0272-1
OPENSUSE-SU-2024:14247-1
OPENSUSE-SU-2024:14248-1
OPENSUSE-SU-2026:10005-1
PYSEC-2024-67
RHSA-2024:6428
RHSA-2024:8534
RHSA-2025:1335
SUSE-SU-2024:2816-1
SUSE-SU-2024:2817-1
USN-6946-1

Affected Products

Alt Linux
Astra Linux
Debian
Django
Linuxmint
Ubuntu