{"title":"Django 3.2.5 release notes","version":"dev","locale":"en","docname":"releases/3.2.5","url":"/en/dev/releases/3.2.5/","canonical":"https://djangodocs.dev/en/dev/releases/3.2.5/","summary":"Django 3.2.5 fixes a security issue with severity “high” and several bugs in 3.2.4. Also, the latest string translations from Transifex are incorporated.","html":"<h1>Django 3.2.5 release notes<a class=\"heading-anchor\" href=\"#django-3-2-5-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>July 1, 2021</em></p>\n<p>Django 3.2.5 fixes a security issue with severity “high” and several bugs in\n3.2.4. Also, the latest string translations from Transifex are incorporated.</p>\n<section id=\"cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input\">\n<h2>CVE-2021-35042: Potential SQL injection via unsanitized <code class=\"docutils literal notranslate\">QuerySet.order_by()</code> input<a class=\"heading-anchor\" href=\"#cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Unsanitized user input passed to <code class=\"docutils literal notranslate\">QuerySet.order_by()</code> could bypass intended\ncolumn reference validation in path marked for deprecation resulting in a\npotential SQL injection even if a deprecation warning is emitted.</p>\n<p>As a mitigation the strict column reference validation was restored for the\nduration of the deprecation period. This regression appeared in 3.1 as a side\neffect of fixing <a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/31426\">#31426</a>.</p>\n<p>The issue is not present in the main branch as the deprecated path has been\nremoved.</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 regression in Django 3.2 that caused a crash of\n<code class=\"docutils literal notranslate\">QuerySet.values_list(…, named=True)</code> after <code class=\"docutils literal notranslate\">prefetch_related()</code>\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/32812\">#32812</a>).</p></li>\n<li><p>Fixed a bug in Django 3.2 that caused a migration crash on MySQL 8.0.13+ when\naltering <code class=\"docutils literal notranslate\">BinaryField</code>, <code class=\"docutils literal notranslate\">JSONField</code>, or <code class=\"docutils literal notranslate\">TextField</code> to non-nullable\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/32503\">#32503</a>).</p></li>\n<li><p>Fixed a regression in Django 3.2 that caused a migration crash on MySQL\n8.0.13+ when adding nullable <code class=\"docutils literal notranslate\">BinaryField</code>, <code class=\"docutils literal notranslate\">JSONField</code>, or <code class=\"docutils literal notranslate\">TextField</code>\nwith a default value (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/32832\">#32832</a>).</p></li>\n<li><p>Fixed a bug in Django 3.2 where a system check would crash on a model with an\ninvalid <code class=\"docutils literal notranslate\">app_label</code> (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/32863\">#32863</a>).</p></li>\n</ul>\n</section>","rootId":"django-3-2-5-release-notes","toc":[{"title":"CVE-2021-35042: Potential SQL injection via unsanitized QuerySet.order_by() input","anchor":"cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input","children":[]},{"title":"Bugfixes","anchor":"bugfixes","children":[]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/3.2.6","title":"Django 3.2.6 release notes","url":"/en/dev/releases/3.2.6/"},"next":{"docname":"releases/3.2.4","title":"Django 3.2.4 release notes","url":"/en/dev/releases/3.2.4/"},"formats":{"html":"/en/dev/releases/3.2.5/","markdown":"/en/dev/releases/3.2.5.md","json":"/en/dev/releases/3.2.5.json"},"source":"https://github.com/django/django/blob/main/docs/releases/3.2.5.txt","official":"https://docs.djangoproject.com/en/dev/releases/3.2.5/","inVersions":["dev","6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2"],"inLocales":["en"]}