CVE-2021-33880 Observable Timing Discrepancy in aaugustin websockets library

Medium 5.9 Published Updated

An attacker can guess passwords via timing attacks when HTTP Basic Authentication is enabled in the Python websockets library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-33880?

CVE-2021-33880 is a medium-severity vulnerability in Oracle Communications Cloud Native Core Policy, published on 6 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-203

Which versions are affected by CVE-2021-33880?

3 open source packages ship an affected version, including websockets. It affects 5 products.

PackageAffectedFixed in
websockets PyPIAll versions9.1
websockets PyPIAll versions9.1
websockets PyPIAll versions9.1

Products include Oracle Communications Cloud Native Core Policy, Oracle Communications Cloud Native Core Security Edge Protection Proxy, Oracle Communications Cloud Native Core Service Communication Proxy, Oracle Communications Cloud Native Core Unified Data Repository, Websockets Project Websockets.

How do I fix CVE-2021-33880?

Upgrade websockets to 9.1 or later.

Is CVE-2021-33880 being exploited?

There is no known exploitation of CVE-2021-33880 in the wild and no public exploit code.

All Oracle Communications Cloud Native Core Policy vulnerabilities

Sources

Also known as CLSA-2025-1764115973, DEBIAN-CVE-2021-33880, GHSA-8ch4-58qp-g3mp, PYSEC-2021-95, UBUNTU-CVE-2021-33880.

Is CVE-2021-33880 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free