Skip to main content
VulnerabilityPublished Updated

CVE-2024-41991: django · Improper Handling of Length Parameter Inconsistency

Affects djangoSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High : upgrade to 5.0.8 or 4.2.15 soon.

Data as of 26 Oct 2026, 15:59 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.9% chance of exploitation in 30 days – higher than 61% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.0.8, 4.2.15
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Aug 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade django to 5.0.8 or 4.2.15.

Affected software

ProductAffectedFixed in
PyPIdjangopkg:pypi/djangoOther threatsAffected
  • <4.2.15
  • <5.0.8
Fixed in
  • 4.2.15
  • 5.0.8

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate this vulnerability, European organizations should immediately upgrade Django installations to versions 5.0.8 or later, or 4.2.15 or later, where the issue has been fixed. Until upgrades can be applied, implement input validation to limit the length and character set of inputs processed by urlize, urlizetrunc, and AdminURLFieldWidget components. Employ web application firewalls (WAFs) to detect and block requests containing suspiciously large Unicode payloads. Rate limiting and request throttling can reduce the risk of resource exhaustion from repeated exploit attempts. Monitor application logs for unusual spikes in resource usage or malformed input patterns. Conduct thorough testing of web applications to identify any custom usage of the affected filters or widgets and apply patches accordingly. Educate development teams about secure input handling practices and encourage timely application of security updates. Finally, maintain an incident response plan to quickly address potential denial-of-service incidents.

Description

An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. The urlize and urlizetrunc template filters, and the AdminURLFieldWidget widget, are subject to a potential denial-of-service attack via certain inputs with a very large number of Unicode characters.

References

Community reviews

Loading reviews…