Vulnerability · Published Jun 6, 2021 · Assigned by mitre
CVE-2021-33880
Medium 5.9
In plain English
A medium-severity security flaw in the python-websockets package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.9Medium
Exploit odds (30 days)2.3%top 16.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
The aaugustin websockets library before 9.1 for Python has an Observable Timing Discrepancy on servers when HTTP Basic Authentication is enabled with basic_auth_protocol_factory(credentials=...). An attacker may be able to guess a password via a timing attack.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-websockets | 9.1-1 | DEBIAN-CVE-2021-33880 |
| Debian:13 | python-websockets | 9.1-1 | DEBIAN-CVE-2021-33880 |
| Debian:14 | python-websockets | 9.1-1 | DEBIAN-CVE-2021-33880 |
| PyPI | websockets | 9.1 | GHSA-8ch4-58qp-g3mp |
| PyPI | websockets | 9.1 | PYSEC-2021-95 |
| Ubuntu:22.04:LTS | python-websockets | no fix listed | UBUNTU-CVE-2021-33880 |
| Ubuntu:24.04:LTS | python-websockets | no fix listed | UBUNTU-CVE-2021-33880 |
| Ubuntu:25.10 | python-websockets | no fix listed | UBUNTU-CVE-2021-33880 |
| Ubuntu:26.04:LTS | python-websockets | no fix listed | UBUNTU-CVE-2021-33880 |
| Ubuntu:26.10 | python-websockets | no fix listed | UBUNTU-CVE-2021-33880 |
Affected products (as reported)
References
- https://github.com/aaugustin/websockets/commit/547a26b685d08cac0aa64e5e65f7867ac0ea9bc0 x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC