Integer Overflow Vulnerability in rust-transpose Package

rust-transpose Updated 02 Oct 2025

Summary

27/07/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-53156: The transpose crate before 0.2.3 for Rust allows an integer overflow via input_width and input_height arguments. Affects rust-transpose versions < 0.2.3-1. Fixed in 0.2.3-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The rust-transpose package is a Rust crate designed for matrix transposition operations, providing efficient algorithms for manipulating two-dimensional arrays. It is widely used in applications requiring mathematical computations and data processing. However, prior to version 0.2.3, the package is susceptible to an integer overflow vulnerability that can be exploited through improper input handling.

Vulnerability Detail

The vulnerability stems from the transpose crate versions before 0.2.3, which allows an integer overflow when the input_width and input_height arguments are provided with excessively large values. This overflow can lead to unexpected behavior, including crashes or the execution of arbitrary code, posing significant risks to applications relying on this crate for matrix operations.

How To Fix

Minimum fixed version

0.2.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rust-transpose

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, developers can implement input validation to ensure that the input_width and input_height arguments do not exceed safe limits, thus preventing the overflow from occurring. For example, you can add checks like the following in your code: if input_width > MAX_WIDTH || input_height > MAX_HEIGHT { return

Err('Input dimensions are too large');

}

Conclusion

The rust-transpose package has a critical integer overflow vulnerability in versions prior to 0.2.3. Users are advised to update to the patched version to ensure the security and stability of their applications. Implementing input validation can serve as a temporary workaround while the update is applied.

See every vulnerability recorded for rust-transpose →

Share this vulnerability

FAQ

rust-transpose is a Rust crate used for efficiently transposing matrices, commonly utilized in mathematical and data processing applications.

The integer overflow vulnerability allows attackers to exploit the package by providing large input dimensions, potentially leading to crashes or arbitrary code execution.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Failing to address this vulnerability may lead to application instability, crashes, or exploitation by malicious actors, compromising the security of your software.

It is recommended to regularly check for updates and apply them promptly, ideally as part of your development and deployment processes, to mitigate vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for rust-transpose.

How To Fix

Minimum fixed version

0.2.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade rust-transpose

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback