Every CVE Search/ Get API key

CVE-2016-9013

Django user with hardcoded password created when running tests on Oracle

9.8 CriticalFix available

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

5.19%Up 3.9 points since Feb 4, 2022
90%50%10%1%

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 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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

Affected packages
PackageAffectedFixed
django
PyPI
1.10a1 up to 1.10.3
1.10.3
django
PyPI
1.9a1 up to 1.9.11
1.9.11
django
PyPI
1.8a1 up to 1.8.16
1.8.16
py-django
Alpine:v3.10
before 1.8.16-r0
1.8.16-r0
py-django
Alpine:v3.2
before 1.8.16-r0
1.8.16-r0
py-django
Alpine:v3.3
before 1.8.16-r0
1.8.16-r0
py-django
Alpine:v3.4
before 1.8.16-r0
1.8.16-r0
py-django
Alpine:v3.5
before 1.8.16-r0
1.8.16-r0
py-django
Alpine:v3.6
before 1.8.16-r0
1.8.16-r0
py-django
Alpine:v3.7
before 1.8.16-r0
1.8.16-r0
Show 17 moreShow less
Affected packages
PackageAffectedFixed
py-django
Alpine:v3.8
before 1.8.16-r0
1.8.16-r0
py-django
Alpine:v3.9
before 1.8.16-r0
1.8.16-r0
py3-django
Alpine:v3.11
before 1.8.16-r0
1.8.16-r0
py3-django
Alpine:v3.12
before 1.8.16-r0
1.8.16-r0
python-django
Debian:12
before 1:1.10.3-1
1:1.10.3-1
python-django
Debian:13
before 1:1.10.3-1
1:1.10.3-1
python-django
Debian:14
before 1:1.10.3-1
1:1.10.3-1
python-django
Debian: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 less
1.7.7-1+deb8u21.7.7-1+deb8u31.7.7-1+deb8u41.7.7-1+deb8u51.7.9-1
1.7.11-1+deb8u2
django
PyPI
1.10a1 up to 1.10.3, plus listed versions
1.101.10.11.10.21.10b11.10rc1
1.10.3
django
PyPI
1.9a1 up to 1.9.11, plus listed versions
1.91.9.11.9.101.9.21.9.3
Show 9 moreShow less
1.9.41.9.51.9.61.9.71.9.81.9.91.9b11.9rc11.9rc2
1.9.11
django
PyPI
1.8a1 up to 1.8.16, plus listed versions
1.81.8.11.8.101.8.111.8.12
Show 14 moreShow less
1.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-django
Mageia:5
before 1.8.16-1.mga5
1.8.16-1.mga5
django
PyPI
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 less
1.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-Django
SUSE:OpenStack Cloud 7
before 1.8.19-3.4.1
1.8.19-3.4.1
python-Django
SUSE:OpenStack Cloud 6
before 1.8.19-3.6.1
1.8.19-3.6.1
python-django
Ubuntu: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 less
1.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-django
Ubuntu: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 less
1.8.7-1ubuntu41.8.7-1ubuntu51.8.7-1ubuntu5.11.8.7-1ubuntu5.2
1.8.7-1ubuntu5.4

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 39 moreShow less
MoveEnter Open