CVE-2016-9013
Django user with hardcoded password created when running tests on Oracle
Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.
- Record
CVE-2016-9013- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-798
- Updated
- 2026-11-02
CVE List No score
Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.
- Record
CVE-2016-9013- Updated
- 2026-11-02
EUVDEUVD-2016-0006 No score
Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.
- Record
EUVD-2016-0006- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-mv8g-fhh6-6267
9.3
Django user with hardcoded password created when running tests on Oracle
Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.
- Record
GHSA-mv8g-fhh6-6267- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-798
- Updated
- 2026-11-02
OSVALPINE-CVE-2016-9013
9.8
Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.
- Record
ALPINE-CVE-2016-9013- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
9.8
Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.
- Record
CVE-2016-9013- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVDEBIAN-CVE-2016-9013
9.8
Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.
- Record
DEBIAN-CVE-2016-9013- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-mv8g-fhh6-6267
9.3
Django user with hardcoded password created when running tests on Oracle
Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.
- Record
GHSA-mv8g-fhh6-6267- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-798
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-9013
9.8
Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.
- Record
UBUNTU-CVE-2016-9013- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2016-0368 No score
Updated python-django packages fix security vulnerabilities
User with hardcoded password created when running tests on Oracle When running tests with an Oracle database, Django creates a temporary database user. In older versions, if a password isn't manually specified in the database settings TEST dictionary, a hardcoded password is used. This could allow an attacker with network access to the database server to connect. (CVE-2016-9013)
DNS rebinding vulnerability when DEBUG=True Older versions of Django don't validate the Host header against settings.ALLOWED_HOSTS when settings.DEBUG=True. This makes them vulnerable to a DNS rebinding attack. (CVE-2016-9014)
- Record
MGASA-2016-0368- Updated
- 2026-11-02
OSVPYSEC-2016-17 No score
Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.
- Record
PYSEC-2016-17- Updated
- 2026-11-02
OSVSUSE-SU-2018:0973-1 No score
Security update for python-Django
This update for python-Django fixes the following issues:
Security issues fixed:
- CVE-2018-7537: Fixed catastrophic backtracking in django.utils.text.Truncator. (bsc#1083305)
- CVE-2018-7536: Fixed catastrophic backtracking in urlize and urlizetrunc template filters. (bsc#1083304)
- CVE-2017-12794: Fixed XSS possibility in traceback section of technical 500 debug page (bsc#1056284)
- CVE-2017-7234: Open redirect vulnerability in django.views.static.serve() (bsc#1031451)
- CVE-2017-7233: Open redirect and possible XSS attack via user-supplied numeric redirect URLs (bsc#1031450)
- CVE-2016-9014: DNS rebinding vulnerability when DEBUG=True (bsc#1008047)
- CVE-2016-9013: User with hardcoded password created when running tests on Oracle (bsc#1008050)
- CVE-2016-7401: CSRF protection bypass on a site with Google Analytics (bsc#1001374)
- Record
SUSE-SU-2018:0973-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:1102-1 No score
Security update for python-Django
This update for python-Django fixes the following issues:
Security issues fixed:
- CVE-2018-7537: Fixed catastrophic backtracking in django.utils.text.Truncator. (bsc#1083305)
- CVE-2018-7536: Fixed catastrophic backtracking in urlize and urlizetrunc template filters. (bsc#1083304)
- CVE-2017-12794: Fixed XSS possibility in traceback section of technical 500 debug page (bsc#1056284)
- CVE-2017-7234: Open redirect vulnerability in django.views.static.serve() (bsc#1031451)
- CVE-2017-7233: Open redirect and possible XSS attack via user-supplied numeric redirect URLs (bsc#1031450)
- CVE-2016-9014: DNS rebinding vulnerability when DEBUG=True (bsc#1008047)
- CVE-2016-9013: User with hardcoded password created when running tests on Oracle (bsc#1008050)
- CVE-2016-7401: CSRF protection bypass on a site with Google Analytics (bsc#1001374)
- CVE-2016-2512: Vulnerability in the function tils.http.is_safe_url could allow remote users to arbitrary web site and conduct phishing attacks. (bsc#bnc#967999)
- Record
SUSE-SU-2018:1102-1- Updated
- 2026-11-02
OSVUSN-3115-1 No score
python-django vulnerabilities
Marti Raudsepp discovered that Django incorrectly used a hardcoded password when running tests on an Oracle database. A remote attacker could possibly connect to the database while the tests are running and prevent the test user with the hardcoded password from being removed. (CVE-2016-9013)
Aymeric Augustin discovered that Django incorrectly validated hosts when being run with the debug setting enabled. A remote attacker could possibly use this issue to perform DNS rebinding attacks. (CVE-2016-9014)
- Record
USN-3115-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
djangoPyPI |
1.10a1 up to 1.10.3 | 1.10.3 |
djangoPyPI |
1.9a1 up to 1.9.11 | 1.9.11 |
djangoPyPI |
1.8a1 up to 1.8.16 | 1.8.16 |
py-djangoAlpine:v3.10 |
before 1.8.16-r0 | 1.8.16-r0 |
py-djangoAlpine:v3.2 |
before 1.8.16-r0 | 1.8.16-r0 |
py-djangoAlpine:v3.3 |
before 1.8.16-r0 | 1.8.16-r0 |
py-djangoAlpine:v3.4 |
before 1.8.16-r0 | 1.8.16-r0 |
py-djangoAlpine:v3.5 |
before 1.8.16-r0 | 1.8.16-r0 |
py-djangoAlpine:v3.6 |
before 1.8.16-r0 | 1.8.16-r0 |
py-djangoAlpine:v3.7 |
before 1.8.16-r0 | 1.8.16-r0 |
Show 17 moreShow less
| Package | Affected | Fixed |
|---|---|---|
py-djangoAlpine:v3.8 |
before 1.8.16-r0 | 1.8.16-r0 |
py-djangoAlpine:v3.9 |
before 1.8.16-r0 | 1.8.16-r0 |
py3-djangoAlpine:v3.11 |
before 1.8.16-r0 | 1.8.16-r0 |
py3-djangoAlpine:v3.12 |
before 1.8.16-r0 | 1.8.16-r0 |
python-djangoDebian:12 |
before 1:1.10.3-1 | 1:1.10.3-1 |
python-djangoDebian:13 |
before 1:1.10.3-1 | 1:1.10.3-1 |
python-djangoDebian:14 |
before 1:1.10.3-1 | 1:1.10.3-1 |
python-djangoDebian:8 |
before 1.7.11-1+deb8u2, plus listed versions 1.7.10-11.7.11-11.7.11-1+deb8u11.7.7-11.7.7-1+deb8u1 Show 5 moreShow less1.7.7-1+deb8u21.7.7-1+deb8u31.7.7-1+deb8u41.7.7-1+deb8u51.7.9-1 |
1.7.11-1+deb8u2 |
djangoPyPI |
1.10a1 up to 1.10.3, plus listed versions 1.101.10.11.10.21.10b11.10rc1 |
1.10.3 |
djangoPyPI |
1.9a1 up to 1.9.11, plus listed versions 1.91.9.11.9.101.9.21.9.3 Show 9 moreShow less1.9.41.9.51.9.61.9.71.9.81.9.91.9b11.9rc11.9rc2 |
1.9.11 |
djangoPyPI |
1.8a1 up to 1.8.16, plus listed versions 1.81.8.11.8.101.8.111.8.12 Show 14 moreShow less1.8.131.8.141.8.151.8.21.8.31.8.41.8.51.8.61.8.71.8.81.8.91.8b11.8b21.8c1 |
1.8.16 |
python-djangoMageia:5 |
before 1.8.16-1.mga5 | 1.8.16-1.mga5 |
djangoPyPI |
1.8 up to 1.8.16, 1.9 up to 1.9.11, 1.10 up to 1.10.3, plus listed versions 1.10.11.10.21.8.11.8.101.8.11 Show 22 moreShow less1.8.121.8.131.8.141.8.151.8.21.8.31.8.41.8.51.8.61.8.71.8.81.8.91.9.11.9.101.9.21.9.31.9.41.9.51.9.61.9.71.9.81.9.9 |
1.8.161.9.111.10.3 |
python-DjangoSUSE:OpenStack Cloud 7 |
before 1.8.19-3.4.1 | 1.8.19-3.4.1 |
python-DjangoSUSE:OpenStack Cloud 6 |
before 1.8.19-3.6.1 | 1.8.19-3.6.1 |
python-djangoUbuntu:14.04:LTS |
before 1.6.1-2ubuntu0.16, plus listed versions 1.5.4-1ubuntu11.6-11.6.1-11.6.1-21.6.1-2ubuntu0.1 Show 13 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.101.6.1-2ubuntu0.111.6.1-2ubuntu0.121.6.1-2ubuntu0.131.6.1-2ubuntu0.141.6.1-2ubuntu0.15 |
1.6.1-2ubuntu0.16 |
python-djangoUbuntu:16.04:LTS |
before 1.8.7-1ubuntu5.4, plus listed versions 1.7.9-1ubuntu51.8.5-2ubuntu11.8.7-1ubuntu11.8.7-1ubuntu21.8.7-1ubuntu3 Show 4 moreShow less1.8.7-1ubuntu41.8.7-1ubuntu51.8.7-1ubuntu5.11.8.7-1ubuntu5.2 |
1.8.7-1ubuntu5.4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-9013 is a critical vulnerability (CVSS 9.8) in Djangoproject Django, published November 1, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.19%, the 92nd percentile. Fixed in django 1.10.3.
References
djangoproject.com/weblog/2016/nov/01/security-releases
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QXDKJYHN74BWY3P7AR2UZDVJREQMRE6S
debian.org/security/2017/dsa-3835
ubuntu.com/usn/USN-3115-1
securityfocus.com/bid/94069
securitytracker.com/id/1037159
Show 39 moreShow less
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OG5ROMUPS6C7BXELD3TAUUH7OBYV56WQ
nvd.nist.gov/vuln/detail/CVE-2016-9013
github.com/django/django/commit/34e10720d81b8d407aa14d763b6a7fe8f13b4f2e
github.com/django/django/commit/4844d86c7728c1a5a3bbce4ad336a8d32304072b
github.com/django/django/commit/70f99952965a430daf69eeb9947079aae535d2d0
lists.fedoraproject.org/archives/list/[email protected]/message/OG5ROMUPS6C7BXELD3TAUUH7OBYV56WQ
lists.fedoraproject.org/archives/list/[email protected]/message/QXDKJYHN74BWY3P7AR2UZDVJREQMRE6S
github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2016-17.yaml
github.com/advisories/GHSA-mv8g-fhh6-6267
security.alpinelinux.org/vuln/CVE-2016-9013
security-tracker.debian.org/tracker/CVE-2016-9013
github.com/django/django
advisories.mageia.org/MGASA-2016-0368.html
bugs.mageia.org/show_bug.cgi?id=19690
ubuntu.com/usn/usn-3115-1
suse.com/support/update/announcement/2018/suse-su-20180973-1
bugzilla.suse.com/1001374
bugzilla.suse.com/1008047
bugzilla.suse.com/1008050
bugzilla.suse.com/1031450
bugzilla.suse.com/1031451
bugzilla.suse.com/1056284
bugzilla.suse.com/1083304
bugzilla.suse.com/1083305
suse.com/security/cve/CVE-2016-7401
suse.com/security/cve/CVE-2016-9013
suse.com/security/cve/CVE-2016-9014
suse.com/security/cve/CVE-2017-12794
suse.com/security/cve/CVE-2017-7233
suse.com/security/cve/CVE-2017-7234
suse.com/security/cve/CVE-2018-7536
suse.com/security/cve/CVE-2018-7537
suse.com/support/update/announcement/2018/suse-su-20181102-1
bugzilla.suse.com/967999
suse.com/security/cve/CVE-2016-2512
ubuntu.com/security/CVE-2016-9013
ubuntu.com/security/notices/USN-3115-1
cve.org/CVERecord?id=CVE-2016-9013
ubuntu.com/security/CVE-2016-9014