{"id":"CVE-2023-53156","aliases":["CVE-2023-53156","GHSA-5gmm-6m36-r7jh","RUSTSEC-2023-0080"],"related":[],"kind":"vulnerability","state":"published","title":"transpose: Buffer overflow due to integer overflow","summary":"The transpose crate before 0.2.3 for Rust allows an integer overflow via input_width and input_height arguments.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The transpose crate before 0.2.3 for Rust allows an integer overflow via input_width and input_height arguments.","source":"cvelist"},{"lang":"en","text":"Given the function `transpose::transpose`:\n```rust\nfn transpose<T: Copy>(input: &[T], output: &mut [T], input_width: usize, input_height: usize)\n```\n\nThe safety check `input_width * input_height == output.len()` can fail due to `input_width * input_height` overflowing in such a way that it equals `output.len()`.\nAs 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.\n\nExploiting this issue requires the caller to pass `input_width` and `input_height` arguments such that multiplying them overflows, and the overflown result equals the lengths of input and output slices.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete de transpose para Rust anterior a la versión 0.2.3  permite un desbordamiento de enteros a través de los argumentos input_width y input_height.","source":"nvd"}],"published":"2023-12-18T12:00:00.000Z","modified":"2026-06-17T06:44:24.360Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L","score":4.5,"rating":"MEDIUM"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L","score":4.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L","score":4.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-120","CWE-190"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.2.3","status":"affected"}],"vendor":"ejmahler","product":"transpose","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.2.3"}],"ecosystem":"crates.io","package":"transpose","purl":"pkg:cargo/transpose","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.2.3"}],"ecosystem":"crates.io","package":"transpose","purl":"pkg:cargo/transpose","source":"rustsec"},{"ranges":[{"status":"affected","introduced":"0.1.0","fixed":"0.2.3"}],"vendor":"ejmahler","product":"transpose","cpe":"cpe:2.3:a:ejmahler:transpose:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0080.html","tags":["advisory","third-party-advisory","web"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/ejmahler/transpose/issues/11","tags":["issue-tracking","report","web"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/advisories/GHSA-5gmm-6m36-r7jh","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://crates.io/crates/transpose","tags":["package","product"],"sources":["cvelist","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53156","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ejmahler/transpose/commit/c4bcd39fabca9a31a401d0cc42d4090869b5a37a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ejmahler/transpose","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-07-28T15:15:22.586Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53156","url":"https://www.cve.org/CVERecord?id=CVE-2023-53156","licence":"CVE Terms of Use","modified":"2025-07-28T15:15:28.514Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5gmm-6m36-r7jh","url":"https://github.com/advisories/GHSA-5gmm-6m36-r7jh","licence":"CC-BY-4.0","modified":"2025-07-28T16:42:04.676Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0080","url":"https://rustsec.org/advisories/RUSTSEC-2023-0080.html","licence":"CC0-1.0","modified":"2025-10-28T06:02:18.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53156","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53156","licence":"Public domain","modified":"2026-06-17T06:44:24.360Z"}],"updatedAt":"2026-11-25T22:58:34.724Z","epss":{"score":0.00345,"percentile":0.30089,"date":"2026-12-01T12:00:22.000Z"}}