torchvision is vulnerable to Out-of-bounds Read
71
High Risk
The native GIF decoder's read_from_tensor callback passes an unclamped length to memcpy when copying encoded bytes into the GIFLIB read buffer. Decoding a malicious or truncated GIF makes the copy run past the end of the input heap buffer. This can crash the process with a segmentation fault or leak adjacent heap memory into the decode path. The fix clamps the copied length to the number of bytes actually remaining in the input tensor.
You are affected if you are using a version that falls within the vulnerable range and you decode untrusted or user-supplied GIF images.
torchvision is vulnerable to Out-of-bounds Read in versions 0.19.0 - 0.27.1.
Upgrade the torchvision 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