Skip to content

websockets is vulnerable to denial of service by memory exhaustion

High severity GitHub Reviewed Published Sep 17, 2018 to the GitHub Advisory Database • Updated Sep 1, 2023

Package

pip websockets (pip)

Affected versions

>= 4.0, < 5.0

Patched versions

5.0

Description

The Python websockets library version 4 contains a CWE-409: Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in Servers and clients, unless configured with compression=None that can result in Denial of Service by memory exhaustion. This attack appears to be exploitable via sending a specially crafted frame on an established connection. This vulnerability appears to have been fixed in version 5.0

References

Published by the National Vulnerability Database Jun 26, 2018
Published to the GitHub Advisory Database Sep 17, 2018
Reviewed Jun 16, 2020
Last updated Sep 1, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CVE ID

CVE-2018-1000518

GHSA ID

GHSA-6g87-ff9q-v847

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.