CVE-2026-77050: Potential denial-of-service vulnerability in get_supported_language_variant()

Published Oct 6, 2026
·
Updated

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.getsupportedlanguagevariant() 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.

Other sources

Potential denial-of-service vulnerability in getsupportedlanguagevariant()

— Microsoft

Affected Software

16 affected componentsFixes available
Django Django<6.1.2, <6.0.9, <5.2.18
alpine/py3-django<5.2.18-r0
5.2.18-r0
All of the following
azurelinux/python-django5<0:5.2.18-2.azl4
0:5.2.18-2.azl4
Microsoft Azure Linux=4.0
debian/python-django<3:3.2.25-0+deb12u6
3:3.2.25-0+deb12u6
debian/python-django<3:4.2.30-0+deb13u1
3:4.2.30-0+deb13u1
debian/python-django<3:5.2.18-1
3:5.2.18-1
debian/python-django<=3:3.2.25-0+deb12u3, <=3:4.2.28-0+deb13u2
3:3.2.25-0+deb12u63:4.2.30-0+deb13u13:5.2.18-1
ubuntu/python-django*
ubuntu/python-django*
ubuntu/python-django*
ubuntu/python-django*
ubuntu/python-django*
ubuntu/python-django*
ubuntu/python-django*
ubuntu/python-django*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/py3-django to a version that resolves this vulnerability.

    Fixed in 5.2.18-r0
  2. Upgrade

    Upgrade azurelinux/python-django5 to a version that resolves this vulnerability.

    Fixed in 0:5.2.18-2.azl4
  3. Upgrade

    Upgrade debian/python-django to a version that resolves this vulnerability.

    Fixed in 3:3.2.25-0+deb12u6
  4. Upgrade

    Upgrade debian/python-django to a version that resolves this vulnerability.

    Fixed in 3:4.2.30-0+deb13u1
  5. Upgrade

    Upgrade debian/python-django to a version that resolves this vulnerability.

    Fixed in 3:5.2.18-1
  6. Upgrade

    Upgrade debian/python-django to a version that resolves this vulnerability.

    Fixed in 3:3.2.25-0+deb12u6Fixed in 3:4.2.30-0+deb13u1Fixed in 3:5.2.18-1

Event History

Oct 6, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeakness
Event
via NVD·02:17 PM
Nov 17, 2026
Data Sourced
via Microsoft·07:09 AM
DescriptionSeverityWeaknessAffected Software
Nov 22, 2026
Updated
via OSV·07:00 PM
Affected Software
Nov 24, 2026
Data Sourced
via OSV·02:56 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

Which Django versions are confirmed to be affected and which versions contain the fix?

Django 6.1 before 6.1.2, 6.0 before 6.0.9, and 5.2 before 5.2.18 are affected. Upgrading to 6.1.2, 6.0.9, or 5.2.18 addresses the issue for those release series.

2

What must an attacker be able to do to trigger the denial of service?

An attacker must be able to cause get_supported_language_variant() to process many distinct, very long language codes. Those values are retained as keys in an in-memory cache, allowing process memory consumption to grow.

3

Are unsupported Django release series known to be safe?

No. Earlier unsupported series, including 5.1.x, 5.0.x, and 4.2.x, were not evaluated and may also be affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203