Skip to main content
VulnerabilityPublished Updated

CVE-2024-41990: 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, 17:16 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.2% chance of exploitation in 30 days – higher than 69% 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

The most effective mitigation is to upgrade Django installations to version 5.0.8 or later, or 4.2.15 or later, where the vulnerability has been patched. Until patching is possible, organizations should implement input validation and size restrictions on user inputs processed by urlize() and urlizetrunc() filters to prevent excessively large payloads from being processed. Web application firewalls (WAFs) can be configured to detect and block suspiciously large or malformed inputs targeting these filters. Monitoring application performance and logs for unusual spikes in resource usage can help detect attempted exploitation. Additionally, consider isolating or rate-limiting access to endpoints that utilize these filters to reduce exposure. Security teams should also review template usage to minimize reliance on vulnerable filters or replace them with safer alternatives if feasible. Regular vulnerability scanning and timely application of security updates remain critical to prevent exploitation.

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 are subject to a potential denial-of-service attack via very large inputs with a specific sequence of characters.

References

Community reviews

Loading reviews…