picows is vulnerable to Out-of-bounds Write
75
High Risk
The Cython WebSocket frame parser in picows.pyx reads a client-supplied 64-bit extended payload length into a signed Py_ssize_t field without checking the RFC 6455-forbidden high bit. A remote client that completes a normal WebSocket handshake can send a single frame whose length sets that high bit, producing a negative value that bypasses the max_frame_size and payload-completeness checks. The negative length is then reinterpreted as a huge unsigned size_t in the payload-masking routine, which reads and writes far outside the receive buffer and crashes the server process. The fix rejects forbidden high-bit and non-minimal extended-length encodings with a protocol error before they are used.
You are affected if you are using a version that falls within the vulnerable range and you use picows to run a WebSocket server that accepts frames from untrusted clients.
picows is vulnerable to Out-of-bounds Write in versions 1.11.0 - 2.1.1.
Upgrade the picows library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant