{"title":"Django 3.1.8 release notes","version":"dev","locale":"en","docname":"releases/3.1.8","url":"/en/dev/releases/3.1.8/","canonical":"https://djangodocs.dev/en/dev/releases/3.1.8/","summary":"Django 3.1.8 fixes a security issue with severity “low” and a bug in 3.1.7. MultiPartParser allowed directory-traversal via uploaded files with suitably…","html":"<h1>Django 3.1.8 release notes<a class=\"heading-anchor\" href=\"#django-3-1-8-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>April 6, 2021</em></p>\n<p>Django 3.1.8 fixes a security issue with severity “low” and a bug in 3.1.7.</p>\n<section id=\"cve-2021-28658-potential-directory-traversal-via-uploaded-files\">\n<h2>CVE-2021-28658: Potential directory-traversal via uploaded files<a class=\"heading-anchor\" href=\"#cve-2021-28658-potential-directory-traversal-via-uploaded-files\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p><code class=\"docutils literal notranslate\">MultiPartParser</code> allowed directory-traversal via uploaded files with\nsuitably crafted file names.</p>\n<p>Built-in upload handlers were not affected by this vulnerability.</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 bug in Django 3.1 where the output was hidden on a test error or\nfailure when using <a class=\"reference internal\" href=\"/en/dev/ref/django-admin/#cmdoption-test-pdb\"><code class=\"xref std std-option docutils literal notranslate\">test --pdb</code></a> with the\n<a class=\"reference internal\" href=\"/en/dev/ref/django-admin/#cmdoption-test-buffer\"><code class=\"xref std std-option docutils literal notranslate\">--buffer</code></a> option (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/32560\">#32560</a>).</p></li>\n</ul>\n</section>","rootId":"django-3-1-8-release-notes","toc":[{"title":"CVE-2021-28658: Potential directory-traversal via uploaded files","anchor":"cve-2021-28658-potential-directory-traversal-via-uploaded-files","children":[]},{"title":"Bugfixes","anchor":"bugfixes","children":[]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/3.1.9","title":"Django 3.1.9 release notes","url":"/en/dev/releases/3.1.9/"},"next":{"docname":"releases/3.1.7","title":"Django 3.1.7 release notes","url":"/en/dev/releases/3.1.7/"},"formats":{"html":"/en/dev/releases/3.1.8/","markdown":"/en/dev/releases/3.1.8.md","json":"/en/dev/releases/3.1.8.json"},"source":"https://github.com/django/django/blob/main/docs/releases/3.1.8.txt","official":"https://docs.djangoproject.com/en/dev/releases/3.1.8/","inVersions":["dev","6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1"],"inLocales":["en"]}