{"title":"Django 5.1.5 release notes","version":"dev","locale":"en","docname":"releases/5.1.5","url":"/en/dev/releases/5.1.5/","canonical":"https://djangodocs.dev/en/dev/releases/5.1.5/","summary":"Django 5.1.5 fixes a security issue with severity “moderate” and one bug in 5.1.4.","html":"<h1>Django 5.1.5 release notes<a class=\"heading-anchor\" href=\"#django-5-1-5-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>January 14, 2025</em></p>\n<p>Django 5.1.5 fixes a security issue with severity “moderate” and one bug in\n5.1.4.</p>\n<section id=\"cve-2024-56374-potential-denial-of-service-vulnerability-in-ipv6-validation\">\n<h2>CVE-2024-56374: Potential denial-of-service vulnerability in IPv6 validation<a class=\"heading-anchor\" href=\"#cve-2024-56374-potential-denial-of-service-vulnerability-in-ipv6-validation\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Lack of upper bound limit enforcement in strings passed when performing IPv6\nvalidation could lead to a potential denial-of-service attack. The undocumented\nand private functions <code class=\"docutils literal notranslate\">clean_ipv6_address</code> and <code class=\"docutils literal notranslate\">is_valid_ipv6_address</code> were\nvulnerable, as was the  <a class=\"reference internal\" href=\"/en/dev/ref/forms/fields/#django.forms.GenericIPAddressField\" title=\"django.forms.GenericIPAddressField\"><code class=\"xref py py-class docutils literal notranslate\">django.forms.GenericIPAddressField</code></a> form field,\nwhich has now been updated to define a <code class=\"docutils literal notranslate\">max_length</code> of 39 characters.</p>\n<p>The <a class=\"reference internal\" href=\"/en/dev/ref/models/fields/#django.db.models.GenericIPAddressField\" title=\"django.db.models.GenericIPAddressField\"><code class=\"xref py py-class docutils literal notranslate\">django.db.models.GenericIPAddressField</code></a> model field was not\naffected.</p>\n</section>\n<section id=\"bugfixes\">\n<h2>Bugfixes<a class=\"heading-anchor\" href=\"#bugfixes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<ul class=\"simple\">\n<li><p>Fixed a crash when applying migrations with references to the removed\n<code class=\"docutils literal notranslate\">Meta.index_together</code> option (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/34856\">#34856</a>).</p></li>\n</ul>\n</section>","rootId":"django-5-1-5-release-notes","toc":[{"title":"CVE-2024-56374: Potential denial-of-service vulnerability in IPv6 validation","anchor":"cve-2024-56374-potential-denial-of-service-vulnerability-in-ipv6-validation","children":[]},{"title":"Bugfixes","anchor":"bugfixes","children":[]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/5.1.6","title":"Django 5.1.6 release notes","url":"/en/dev/releases/5.1.6/"},"next":{"docname":"releases/5.1.4","title":"Django 5.1.4 release notes","url":"/en/dev/releases/5.1.4/"},"formats":{"html":"/en/dev/releases/5.1.5/","markdown":"/en/dev/releases/5.1.5.md","json":"/en/dev/releases/5.1.5.json"},"source":"https://github.com/django/django/blob/main/docs/releases/5.1.5.txt","official":"https://docs.djangoproject.com/en/dev/releases/5.1.5/","inVersions":["dev","6.1","6.0","5.2","5.1"],"inLocales":["en"]}