Medium, CVSS 4.5crates.ioPublished
transpose: Buffer overflow due to integer overflow
CVE-2023-53156 · GHSA-5gmm-6m36-r7jh
- Affected
- crates.io transpose >= 0.1.0, < 0.2.3
- Fixed in
- 0.2.3· Vendor fix available
- Issue
- Given the function transpose::transpose: The safety check inputwidth inputheight == output.len() can fail due to inputwidth inputheight overflowing in such a way that it equals output.len(). As a result of failing the safety check, memory past the end of output is written to. This only occurs in release mode since panics on overflow in debug mode. Exploiting this issue requires the caller to pass inputwidth and inputheight arguments such that multiplying them overflows, and the overflown result equals the lengths of input and output slices.
Recommended action: Upgrade to 0.2.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.