CVE-2026-77050: CWE-789: Memory Allocation with Excessive Size Value in djangoproject Django
Description
An issue was discovered in Django 6.1 before 6.1.2, 6.0 before 6.0.9, and 5.2 before 5.2.18. `django.utils.translation.get_supported_language_variant()` is subject to a potential denial-of-service attack when processing many distinct, very long language codes, which are retained as keys in an in-memory cache and consume process memory. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank Gleb Lizunov for reporting this issue.
CVSS v3.1
Score 5.3medium
Affected software
djangoproject
Django
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-77050) in Django arises from the handling of language codes in the get_supported_language_variant() function. When many distinct and very long language codes are processed, they are retained as keys in an in-memory cache, causing excessive memory allocation (CWE-789). This can lead to denial-of-service by exhausting process memory. The affected versions are Django 6.1 prior to 6.1.2, 6.0 prior to 6.0.9, and 5.2 prior to 5.2.18. The issue was reported by Gleb Lizunov. There is no indication of known exploits in the wild.
Potential Impact
The vulnerability allows an attacker to cause a denial-of-service condition by forcing the Django process to consume excessive memory through the caching of many distinct, very long language codes. This impacts availability but does not affect confidentiality or integrity. No known exploitation in the wild has been reported.
Mitigation Recommendations
Fixed versions are available: Django 6.1.2, 6.0.9, and 5.2.18 address this issue. Users should upgrade to these or later versions to remediate the vulnerability. No vendor advisory content was provided to indicate otherwise. Patch status is confirmed by the version ranges indicating fixed versions. No additional mitigation steps are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- DSF
- Date Reserved
- 2026-08-20T09:29:37.560Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ac4fc542cdf04f656b4d693
Added to database: 10/06/2026, 13:49:08 UTC
Last enriched: 10/06/2026, 14:05:05 UTC
Last updated: 10/07/2026, 02:48:07 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.