zerovec is vulnerable to Out-of-Bounds Read
80
High Risk
zerovec's blanket ULE implementation for fixed-size arrays checks that the byte buffer holds a whole number of T elements but not that the buffer length is a multiple of the array's own byte size. A [T; N] zero-copy value built from an externally supplied byte buffer whose length matches T but not [T; N] passes validation despite the size mismatch, so later unsafe casting code computes an element count from a length relationship it never checked. Zero-sized arrays pass the same check unconditionally, since their element size is zero, regardless of buffer length. The fix rejects zero-length arrays and requires the buffer length to be an exact multiple of the array's size.
You are affected if you are using a version that falls within the vulnerable range and your code implements or uses [T; N] as a ULE/VarULE type over byte buffers built from untrusted data.
zerovec is vulnerable to Out-of-Bounds Read in versions 0.7.0 - 0.11.7.
Upgrade the zerovec 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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.