CVE-2015-8213
Django settings leak in date template filter
CVE-2015-8213 is a medium vulnerability (CVSS 5.0) in Djangoproject Django, published November 24, 2015. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.28%, the 91st percentile. Fixed in django 1.7.11.
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.
Exploit likelihood
What each source reports
NVD Score used
5.0
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.
- Record
CVE-2015-8213- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-200
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2015-8213- Updated
- 2026-11-02
EUVDEUVD-2015-0006 No score
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.
- Record
EUVD-2015-0006- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-6wcr-wcqm-3mfh
6.9
Django settings leak in date template filter
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.
- Record
GHSA-6wcr-wcqm-3mfh- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 2.8 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N - Weakness
- CWE-200
- Updated
- 2026-11-02
OSVGHSA-6wcr-wcqm-3mfh
6.9
Django settings leak in date template filter
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.
- Record
GHSA-6wcr-wcqm-3mfh- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 2.8 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N - Weakness
- CWE-200
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2015-8213- Updated
- 2026-11-02
Show 8 moreShow less
OSVDEBIAN-CVE-2015-8213 No score
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.
- Record
DEBIAN-CVE-2015-8213- Updated
- 2026-11-02
OSVMGASA-2015-0463 No score
Updated python-django packages fix security vulnerability
If an application allows users to specify an unvalidated format for dates and passes this format to the date filter, then a malicious user could obtain any secret in the application's settings by specifying a settings key instead of a date format (CVE-2015-8213).
- Record
MGASA-2015-0463- Updated
- 2026-11-02
OSVPYSEC-2015-11 No score
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.
- Record
PYSEC-2015-11- Updated
- 2026-11-02
OSVSUSE-SU-2015:2327-1 No score
Security update for python-Django
This update for python-Django fixes the following issues:
- Add 0004-1.6.x-fixed-a-settings-leak-possibility-in-the-date-.patch to prevent settings leak in date template filter (bsc#955412, CVE-2015-8213)
- Record
SUSE-SU-2015:2327-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:0040-1 No score
Security update for python-Django
This update for python-Django fixes the following issues:
- Prevent settings leak in date template filter. (bsc#955412, CVE-2015-8213)
- Record
SUSE-SU-2016:0040-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:0044-1 No score
Security update for python-Django
This update fixes the following security issues:
-
(bnc#955412, CVE-2015-8213) Possible settings leak in date template filter
-
(bnc#937522, CVE-2015-5143) Possible denial-of-service in session store
-
(bnc#937523, CVE-2015-5144) Possible Header injection
-
(bnc#941587, CVE-2015-5963) Possible denial-of-service by filling session store via logout()
- Record
SUSE-SU-2016:0044-1- Updated
- 2026-11-02
OSVUBUNTU-CVE-2015-8213 No score
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.
- Record
UBUNTU-CVE-2015-8213- Updated
- 2026-11-02
OSVUSN-2816-1 No score
python-django vulnerability
Ryan Butterfield discovered that Django incorrectly handled the date template filter. A remote attacker could possibly use this issue to obtain secrets from application settings.
- Record
USN-2816-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
djangoPyPI |
1.7 up to 1.7.11 | 1.7.11 |
djangoPyPI |
1.9a1 up to 1.9rc2 | 1.9rc2 |
djangoPyPI |
1.8a1 up to 1.8.7 | 1.8.7 |
python-djangoDebian:12 |
before 1.8.7-1 | 1.8.7-1 |
python-djangoDebian:13 |
before 1.8.7-1 | 1.8.7-1 |
python-djangoDebian:14 |
before 1.8.7-1 | 1.8.7-1 |
python-djangoDebian:6.0 |
before 1.2.3-3+squeeze15, plus listed versions 1.2.3-31.2.3-3+squeeze11.2.3-3+squeeze101.2.3-3+squeeze111.2.3-3+squeeze12 Show 9 moreShow less1.2.3-3+squeeze131.2.3-3+squeeze141.2.3-3+squeeze21.2.3-3+squeeze31.2.3-3+squeeze51.2.3-3+squeeze61.2.3-3+squeeze71.2.3-3+squeeze81.2.3-3+squeeze9 |
1.2.3-3+squeeze15 |
python-djangoDebian:7 |
before 1.4.5-1+deb7u14, plus listed versions 1.4.5-11.4.5-1+deb7u11.4.5-1+deb7u101.4.5-1+deb7u111.4.5-1+deb7u11~bpo60+1 Show 15 moreShow less1.4.5-1+deb7u121.4.5-1+deb7u131.4.5-1+deb7u13~bpo60+11.4.5-1+deb7u14~bpo60+11.4.5-1+deb7u21.4.5-1+deb7u31.4.5-1+deb7u41.4.5-1+deb7u4~bpo60+11.4.5-1+deb7u51.4.5-1+deb7u61.4.5-1+deb7u71.4.5-1+deb7u7~bpo60+11.4.5-1+deb7u81.4.5-1+deb7u8~bpo60+11.4.5-1+deb7u9 |
1.4.5-1+deb7u14 |
python-djangoDebian:8 |
before 1.7.7-1+deb8u3, plus listed versions 1.7.7-11.7.7-1+deb8u11.7.7-1+deb8u2 |
1.7.7-1+deb8u3 |
djangoPyPI |
1.7 up to 1.7.11, plus listed versions 1.7.11.7.101.7.21.7.31.7.4 Show 5 moreShow less1.7.51.7.61.7.71.7.81.7.9 |
1.7.11 |
Show 22 moreShow less
| Package | Affected | Fixed |
|---|---|---|
djangoPyPI |
1.8a1 up to 1.8.7, plus listed versions 1.81.8.11.8.21.8.31.8.4 Show 5 moreShow less1.8.51.8.61.8b11.8b21.8c1 |
1.8.7 |
djangoPyPI |
1.9a1 up to 1.9rc2, plus listed versions 1.9b11.9rc1 |
1.9rc2 |
python-djangoMageia:5 |
before 1.8.7-1.mga5 | 1.8.7-1.mga5 |
djangoPyPI |
before 1.7.11, 1.8 up to 1.8.7, 1.9a0 up to 1.9rc2, plus listed versions 1.0.11.0.21.0.31.0.41.1 Show 45 moreShow less1.1.11.1.21.1.31.1.41.21.2.11.2.21.2.31.2.41.2.51.2.61.2.71.31.3.11.3.21.3.31.3.41.3.51.3.61.3.71.41.4.11.4.101.4.111.4.121.4.131.4.141.4.151.4.161.4.171.4.181.4.191.4.21.4.201.4.211.4.221.4.31.4.41.4.51.4.61.4.71.4.81.4.91.51.5.1 |
1.7.111.8.71.9rc2 |
python-djangoRed Hat:openstack:6::el7 |
before 0:1.6.11-4.el7ost | 0:1.6.11-4.el7ost |
python-django-bash-completionRed Hat:openstack:6::el7 |
before 0:1.6.11-4.el7ost | 0:1.6.11-4.el7ost |
python-django-docRed Hat:openstack:6::el7 |
before 0:1.6.11-4.el7ost | 0:1.6.11-4.el7ost |
python-djangoRed Hat:openstack:7::el7 |
before 0:1.8.7-1.el7 | 0:1.8.7-1.el7 |
python-django-bash-completionRed Hat:openstack:7::el7 |
before 0:1.8.7-1.el7 | 0:1.8.7-1.el7 |
python-django-docRed Hat:openstack:7::el7 |
before 0:1.8.7-1.el7 | 0:1.8.7-1.el7 |
python-djangoRed Hat:openstack:5::el7 |
before 0:1.6.11-4.el7ost | 0:1.6.11-4.el7ost |
python-django-bash-completionRed Hat:openstack:5::el7 |
before 0:1.6.11-4.el7ost | 0:1.6.11-4.el7ost |
python-django-docRed Hat:openstack:5::el7 |
before 0:1.6.11-4.el7ost | 0:1.6.11-4.el7ost |
python-djangoRed Hat:openstack:5::el6 |
before 0:1.6.11-4.el6ost | 0:1.6.11-4.el6ost |
python-django-bash-completionRed Hat:openstack:5::el6 |
before 0:1.6.11-4.el6ost | 0:1.6.11-4.el6ost |
python-django-docRed Hat:openstack:5::el6 |
before 0:1.6.11-4.el6ost | 0:1.6.11-4.el6ost |
python-djangoRed Hat:openstack-optools:7::el7 |
before 0:1.6.11-4.el7ost | 0:1.6.11-4.el7ost |
python-django-bash-completionRed Hat:openstack-optools:7::el7 |
before 0:1.6.11-4.el7ost | 0:1.6.11-4.el7ost |
python-DjangoSUSE:Enterprise Storage 1.0 |
before 1.6.11-11.1 | 1.6.11-11.1 |
python-DjangoSUSE:OpenStack Cloud 5 |
before 1.6.11-13.1 | 1.6.11-13.1 |
python-DjangoSUSE:Enterprise Storage 2 |
before 1.6.11-3.1 | 1.6.11-3.1 |
python-djangoUbuntu:14.04:LTS |
before 1.6.1-2ubuntu0.11, plus listed versions 1.5.4-1ubuntu11.6-11.6.1-11.6.1-21.6.1-2ubuntu0.1 Show 8 moreShow less1.6.1-2ubuntu0.21.6.1-2ubuntu0.31.6.1-2ubuntu0.41.6.1-2ubuntu0.51.6.1-2ubuntu0.61.6.1-2ubuntu0.81.6.1-2ubuntu0.91.6.1-2ubuntu0.10 |
1.6.1-2ubuntu0.11 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
github.com/django/django/commit/316bc3fc9437c5960c24baceb93c73f1939711e4
lists.opensuse.org/opensuse-updates/2015-12/msg00014.html
ubuntu.com/usn/USN-2816-1
rhn.redhat.com/errata/RHSA-2016-0129.html
djangoproject.com/weblog/2015/nov/24/security-releases-issued
lists.fedoraproject.org/pipermail/package-announce/2015-December/174770.html
Show 46 moreShow less
securitytracker.com/id/1034237
rhn.redhat.com/errata/RHSA-2016-0158.html
rhn.redhat.com/errata/RHSA-2016-0157.html
debian.org/security/2015/dsa-3404
rhn.redhat.com/errata/RHSA-2016-0156.html
securityfocus.com/bid/77750
lists.fedoraproject.org/pipermail/package-announce/2015-December/173375.html
lists.opensuse.org/opensuse-updates/2015-12/msg00017.html
nvd.nist.gov/vuln/detail/CVE-2015-8213
github.com/django/django/commit/3ebbda0aef9e7a90ac6208bb8f9bc21228e2c7da
github.com/django/django/commit/8a01c6b53169ee079cb21ac5919fdafcc8c5e172
github.com/django/django/commit/9f83fc2f66f5a0bac7c291aec55df66050bb6991
github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-11.yaml
github.com/advisories/GHSA-6wcr-wcqm-3mfh
security-tracker.debian.org/tracker/CVE-2015-8213
github.com/django/django
advisories.mageia.org/MGASA-2015-0463.html
bugs.mageia.org/show_bug.cgi?id=17215
ubuntu.com/usn/usn-2816-1
access.redhat.com/errata/RHSA-2016:0129
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1283553
security.access.redhat.com/data/csaf/v2/advisories/2016/rhsa-2016_0129.json
access.redhat.com/security/cve/CVE-2015-8213
cve.org/CVERecord?id=CVE-2015-8213
access.redhat.com/errata/RHSA-2016:0156
security.access.redhat.com/data/csaf/v2/advisories/2016/rhsa-2016_0156.json
access.redhat.com/errata/RHSA-2016:0157
security.access.redhat.com/data/csaf/v2/advisories/2016/rhsa-2016_0157.json
access.redhat.com/errata/RHSA-2016:0158
security.access.redhat.com/data/csaf/v2/advisories/2016/rhsa-2016_0158.json
access.redhat.com/errata/RHSA-2016:0360
security.access.redhat.com/data/csaf/v2/advisories/2016/rhsa-2016_0360.json
suse.com/support/update/announcement/2015/suse-su-20152327-1
bugzilla.suse.com/955412
suse.com/security/cve/CVE-2015-8213
suse.com/support/update/announcement/2016/suse-su-20160040-1
suse.com/support/update/announcement/2016/suse-su-20160044-1
bugzilla.suse.com/937522
bugzilla.suse.com/937523
bugzilla.suse.com/941587
suse.com/security/cve/CVE-2015-5143
suse.com/security/cve/CVE-2015-5144
suse.com/security/cve/CVE-2015-5963
ubuntu.com/security/CVE-2015-8213
ubuntu.com/security/notices/USN-2816-1
Left out here: 45 versions. The JSON record has them.