June 2, 2021
Django 3.2.4 fixes two security issues and several bugs in 3.2.3.
admindocs
¶Staff members could use the admindocs
TemplateDetailView
view to check the existence of arbitrary files.
Additionally, if (and only if) the default admindocs templates have been
customized by the developers to also expose the file contents, then not only
the existence but also the file contents would have been exposed.
As a mitigation, path sanitation is now applied and only files within the template root directories can be loaded.
URLValidator
,
validate_ipv4_address()
, and
validate_ipv46_address()
didn’t prohibit leading
zeros in octal literals. If you used such values you could suffer from
indeterminate SSRF, RFI, and LFI attacks.
validate_ipv4_address()
and
validate_ipv46_address()
validators were not
affected on Python 3.9.5+.
SCRIPT_NAME
when redirecting
unauthenticated users to the login page (#32754).mod_wsgi
with
the recommended settings while the Windows colorama
library was installed
(#32740).AttributeError
, e.g. inside a Conda
environment (#32783).DecimalField
on MySQL (#32793).Jan 24, 2024