CVE-2019-12083: The Rust Programming Language Standard Library 1.34.x before 1.34.2 contains a stabilized method which, if overridden, can violate Rust's safety guarantees and cause memory unsafety.
High CVSS 8.1
- CVE id
- CVE-2019-12083
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Rust Runtimes and servers |
>= 1.34.0, < 1.34.2 | 1.34.2 |
How to fix it
Upgrade Rust to 1.34.2 or later.
rustc --version
- Build with the patched Rust toolchain (rustup update, or rust-toolchain.toml) and redeploy.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
The Rust Programming Language Standard Library 1.34.x before 1.34.2 contains a stabilized method which, if overridden, can violate Rust's safety guarantees and cause memory unsafety. If the Error::type_id method is overridden then any type can be safely cast to any other type, causing memory safety vulnerabilities in safe code (e.g., out-of-bounds write or read). Code that does not manually implement Error::type_id is unaffected.
References
- CVE-2019-12083 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2019-12083
- Web: https://blog.rust-lang.org/2019/05/13/Security-advisory.html
- Web: https://groups.google.com/forum/#%21topic/rustlang-security-announcements/aZabeCMUv70
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HG47HYH3AQTUMBUMX3S3G5DNAY4CBW6N/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K6T4BNA5KQYJRIKIGGBOGBMR7TRXPHLR/
- Web: https://blog.rust-lang.org/2019/05/13/Security-advisory.html
- Web: https://groups.google.com/forum/#%21topic/rustlang-security-announcements/aZabeCMUv70
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HG47HYH3AQTUMBUMX3S3G5DNAY4CBW6N/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K6T4BNA5KQYJRIKIGGBOGBMR7TRXPHLR/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.