CVE-2024-38875: django · Improper Handling of Length Parameter Inconsistency
Affects djangoSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 5.0.7 or 4.2.14 soon.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 1.1% chance of exploitation in 30 days – higher than 67% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.0.7, 4.2.14
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 10 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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.7 or 4.2.14.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIdjangopkg:pypi/djangoOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-38875, organizations should prioritize upgrading Django installations to versions 4.2.14 or 5.0.7 or later, where the vulnerability is patched. Until upgrades can be applied, consider implementing input validation or rate limiting on user inputs that are processed by urlize and urlizetrunc functions to prevent excessively large or complex bracketed inputs. Web application firewalls (WAFs) can be configured to detect and block suspicious payloads containing large numbers of brackets. Monitoring application logs for abnormal resource usage or repeated processing of suspicious inputs can help identify attempted exploitation. Additionally, ensure that resource limits (CPU, memory) are enforced at the application or container level to reduce the impact of potential DoS attempts. Regularly review and test incident response plans for availability-related incidents to minimize downtime.
Description
An issue was discovered in Django 4.2 before 4.2.14 and 5.0 before 5.0.7.urlize and urlizetrunc were subject to a potential denial of service attack via certain inputs with a very large number of brackets.