CVE-2020-4071
LOWDescription
In django-basic-auth-ip-whitelist before 0.3.4, a potential timing attack exists on websites where the basic authentication is used or configured, i.e. BASIC_AUTH_LOGIN and BASIC_AUTH_PASSWORD is set. Currently the string comparison between configured credentials and the ones provided by users is performed through a character-by-character string comparison. This enables a possibility that attacker may time the time it takes the server to validate different usernames and password, and use this knowledge to work out the valid credentials. This attack is understood not to be realistic over the Internet. However, it may be achieved from within local networks where the website is hosted, e.g. from inside a data centre where a website's server is located. Sites protected by IP address whitelisting only are unaffected by this vulnerability. This vulnerability has been fixed on version 0.3.4 of django-basic-auth-ip-whitelist. Update to version 0.3.4 as soon as possible and change basic authentication username and password configured on a Django project using this package. A workaround without upgrading to version 0.3.4 is to stop using basic authentication and use the IP whitelisting component only. It can be achieved by not setting BASIC_AUTH_LOGIN and BASIC_AUTH_PASSWORD in Django project settings.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
Exploit Intelligence
Low risk: more likely to be exploited than 29% of all known CVEs.
References
Related Vulnerabilities
Other CWE-208 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2019-9494 | Medium | 5.9 | 3.9% | - | Fix |
| CVE-2019-16782 | Medium | 6.3 | 3.7% | - | Fix |
| CVE-2025-53940 | Unscored | - | 2.6% | - | - |
| CVE-2020-1926 | Medium | 5.9 | 2.5% | - | Fix |
| CVE-2021-43298 | Critical | 9.8 | 2.3% | - | Fix |
| CVE-2024-29995 | High | 8.1 | 1.5% | - | Fix |
Common questions
How do I fix CVE-2020-4071?
Upgrade django-basic-auth-ip-whitelist to 0.3.4 or later.
Is CVE-2020-4071 being actively exploited?
Not that we know of. CVE-2020-4071 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.36% is the estimated probability that it will be exploited in the next 30 days. That is higher than 29% of all scored CVEs.
How severe is CVE-2020-4071?
CVE-2020-4071 has a CVSS v3 base score of 2.2, rated low. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2020-4071 affect?
Published advisories record a fix for django-basic-auth-ip-whitelist (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2020-4071
Markdown
[](https://tridentstack.com/cve/CVE-2020-4071)HTML
<a href="https://tridentstack.com/cve/CVE-2020-4071"><img src="https://tridentstack.com/cve/badge/CVE-2020-4071.svg" alt="CVE-2020-4071"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.