picows is vulnerable to Out-of-bounds Write
75
CVE Score
High
Out-of-bounds Write
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.
Upgrade the picows library to the patch version.
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.
1.11.0 - 2.1.1
Fixed in 2.1.2picows is vulnerable to Out-of-bounds Write in versions 1.11.0 - 2.1.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.