# CVE-2018-21000: Heap overflow or corruption in safe-transmute

- Severity: Critical 9.8 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.98%, higher than 81% of CVEs (2026-12-01)
- Published: 2018-11-27T12:00:00.000Z
- Modified: 2026-06-17T01:53:54.837Z
- Also known as: GHSA-2v78-j59h-fmpf, RUSTSEC-2018-0013
- Weaknesses: CWE-119
- Assigned by: mitre

## Description

An issue was discovered in the safe-transmute crate before 0.10.1 for Rust. A constructor's arguments are in the wrong order, causing heap memory corruption.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- safe-transmute (crates.io): from 0.4.0 before 0.10.1
- safe-transmute_project safe-transmute: before 0.10.1

## Every score

- GitHub: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2018-0013.html> (advisory, third-party-advisory, web)
- <https://github.com/nabijaczleweli/safe-transmute-rs/pull/36> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-21000> (advisory)
- <https://github.com/nabijaczleweli/safe-transmute-rs/commit/a134e06d740f9d7c287f74c0af2cd06206774364> (web)
- <https://github.com/nabijaczleweli/safe-transmute-rs> (package)
- <https://crates.io/crates/safe-transmute> (package)

## Sources

- CVE List: [CVE-2018-21000](https://www.cve.org/CVERecord?id=CVE-2018-21000), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-2v78-j59h-fmpf](https://github.com/advisories/GHSA-2v78-j59h-fmpf), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2018-0013](https://rustsec.org/advisories/RUSTSEC-2018-0013.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2018-21000](https://nvd.nist.gov/vuln/detail/CVE-2018-21000), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-21000 · Whole record: https://cve.day/CVE-2018-21000.json · Rebuilt by cve.day 2026-11-25T22:57:42.465Z
