{"id":"UBUNTU-CVE-2021-33880","details":"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.","modified":"2026-05-20T16:06:27.897853391Z","published":"2021-06-06T15:15:00Z","upstream":["CVE-2021-33880"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-33880"},{"type":"REPORT","url":"https://github.com/aaugustin/websockets/commit/547a26b685d08cac0aa64e5e65f7867ac0ea9bc0"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-33880"}],"affected":[{"package":{"name":"python-websockets","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/python-websockets?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6-1","3.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0-1","binary_name":"python3-websockets"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33880.json"}},{"package":{"name":"python-websockets","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/python-websockets?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3-1","3.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-websockets","binary_version":"3.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33880.json"}},{"package":{"name":"python-websockets","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/python-websockets?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.0-1","8.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"8.1-1","binary_name":"python3-websockets"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33880.json"}},{"package":{"name":"python-websockets","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-websockets?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.1-1","9.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-websockets","binary_version":"9.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33880.json"}},{"package":{"name":"python-websockets","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python-websockets?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["10.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-websockets","binary_version":"10.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33880.json"}},{"package":{"name":"python-websockets","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/python-websockets?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["14.1-1build1","15.0.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"15.0.1-1","binary_name":"python3-websockets"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33880.json"}},{"package":{"name":"python-websockets","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/python-websockets?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15.0.1-1","15.0.1-1build1","15.0.1-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-websockets","binary_version":"15.0.1-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-33880.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}