CVE-2026-15337 Details
Description
An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8. `django.utils.translation.check_for_language()` is subject to a potential denial-of-service attack when given many distinct, very long language codes, which are retained as keys in an in-memory cache and consume process memory. Such codes reach the function through the `django.views.i18n.set_language()` view, which is not routed by default. The consumed memory is bounded, since request data is limited by the `DATA_UPLOAD_MAX_MEMORY_SIZE` setting (default 2.5 MB) and the cache holds a fixed maximum number of entries. 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 Jaeyoung Jang for reporting this issue.
A denial-of-service vulnerability has been identified in Django versions 5.2 prior to 5.2.17 and 6.0 prior to 6.0.8. The issue arises in the `django.utils.translation.check_for_language()` function, which can be exploited by sending numerous distinct, lengthy language codes. These codes are cached in memory, leading to increased memory usage. The vulnerability is accessed through the `django.views.i18n.set_language()` view, which is not enabled by default. Although the vulnerability is limited by the `DATA_UPLOAD_MAX_MEMORY_SIZE` setting and the cache's maximum entry limit, it still poses a risk.
Users can upgrade to Django versions 5.2.17 or 6.0.8 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://docs.djangoproject.com/en/dev/releases/security/ | Django Software Foundation | PatchVendor Advisory |
| https://github.com/django/django/commit/224dbc832586ad5cfb0237c2ff30d14baeaddc6f | Django Software Foundation | Patch |
| https://github.com/django/django/commit/27137e655e442e81095f1f8f77ff3870d9fdf169 | Django Software Foundation | Patch |
| https://github.com/django/django/commit/5b3523d29be25948e1dd90b3863a002f00fc865f | Django Software Foundation | Patch |
| https://github.com/django/django/commit/c72a5dbb64d0777f3f471f1be94e8b2ca91e0959 | Django Software Foundation | Patch |
| https://groups.google.com/g/django-announce | Django Software Foundation | Mailing List |
| https://www.djangoproject.com/weblog/2026/aug/04/security-releases/ | Django Software Foundation | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-789 | Memory Allocation with Excessive Size Value | Django Software Foundation |
Affected Products
| Product | Versions |
|---|---|
| djangoproject django | < 5.2.17 >= 6.0, < 6.0.8 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 18, 2026 | Initial Analysis | [email protected] |
| Aug 4, 2026 | CVE Modified | CISA-ADP |
| Aug 4, 2026 | New CVE Received | Django Software Foundation |