Description
The get_format function in utils/formats.py in Django before 1.7.x before 1.7.11, 1.8.x before 1.8.7, and 1.9.x before 1.9rc2 might allow remote attackers to obtain sensitive application secrets via a settings key in place of a date/time format setting, as demonstrated by SECRET_KEY.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-django | 1.8.7-1 | — |
| Debian 13 | python-django | 1.8.7-1 | — |
| Debian 12 | python-django | 1.8.7-1 | — |
| Debian 8 | python-django | 1.7.7-1+deb8u3 | DSA-3404-1 |
| Debian 7 | python-django | 1.4.5-1+deb7u14 | DSA-3404-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | python-django | 1.2.3-3+squeeze15 | DLA-349-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | python-django | 1.6.1-2ubuntu0.11 | USN-2816-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Openstack-optools 7 | python-django +1 | 1.6.11-4.el7ost | RHSA-2016:0360 |
| Red Hat OpenStack 7 | python-django +2 | 1.8.7-1.el7 | RHSA-2016:0156 |
| Red Hat OpenStack 6 | python-django +2 | 1.6.11-4.el7ost | RHSA-2016:0129 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat OpenStack 5 | python-django +2 | 1.6.11-4.el6ost | RHSA-2016:0158, RHSA-2016:0157 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud 5 | python-Django | 1.6.11-13.1 | SUSE-SU-2016:0040-1 |
| SUSE Enterprise Storage 2 | python-Django | 1.6.11-3.1 | SUSE-SU-2016:0044-1 |
| SUSE Enterprise Storage 1.0 | python-Django | 1.6.11-11.1 | SUSE-SU-2015:2327-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 1.7, < 1.7.11 | 1.7.11 | GHSA-6wcr-wcqm-3mfh |
| PyPI | django | >= 1.8a1, < 1.8.7 | 1.8.7 | GHSA-6wcr-wcqm-3mfh |
| PyPI | django | >= 1.9a1, < 1.9rc2 | 1.9rc2 | GHSA-6wcr-wcqm-3mfh |
| PyPI | django | < 1.7.11 · >= 1.8, < 1.8.7 · >= 1.9a0, < 1.9rc2 | 1.7.11, 1.8.7, 1.9rc2 | PYSEC-2015-11 |
Advisories 11
- RHSA-2016:0360 Red Hat Security Advisory: python-django security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:0158 Red Hat Security Advisory: python-django security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:0157 Red Hat Security Advisory: python-django security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:0156 Red Hat Security Advisory: python-django security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:0129 Red Hat Security Advisory: python-django security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DLA-349-1 python-django - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3404-1 python-django - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-2816-1 python-django vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2016:0040-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0044-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2015:2327-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/django/django/commit/316bc3fc9437c5960c24baceb93c73f1939711e4
- openSUSE-SU-2015:2199 vendor-advisory
- USN-2816-1 vendor-advisory
- RHSA-2016:0129 vendor-advisory
- https://www.djangoproject.com/weblog/2015/nov/24/security-releases-issued/
- FEDORA-2015-323274d412 vendor-advisory
- 1034237 vdb-entry
- RHSA-2016:0158 vendor-advisory
- RHSA-2016:0157 vendor-advisory
- DSA-3404 vendor-advisory
- RHSA-2016:0156 vendor-advisory
- 77750 vdb-entry
- FEDORA-2015-a8c8f60fbd vendor-advisory
- openSUSE-SU-2015:2202 vendor-advisory