Memory Allocation with Excessive Size Value Affecting django package, versions [,5.2.18)[6.0a1,6.0.9)[6.1a1,6.1.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.38% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-DJANGO-20825030
  • published11 Oct 2026
  • disclosed8 Oct 2026
  • creditGleb Lizunov

Introduced: 8 Oct 2026

NewCVE-2026-77050  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade Django to version 5.2.18, 6.0.9, 6.1.2 or higher.

Overview

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value due to the get_supported_language_variant() function in django/utils/translation/trans_real.py. An attacker can exhaust process memory by sending many distinct, very long language codes that are cached as lru_cache keys before the length check is applied. This can grow the in-memory cache with attacker-controlled values and degrade or crash a Django process handling requests that supply language codes.

CVSS Base Scores

version 4.0
version 3.1