{"id":"UBUNTU-CVE-2017-20004","details":"In the standard library in Rust before 1.19.0, there is a synchronization problem in the MutexGuard object. MutexGuards can be used across threads with any types, allowing for memory safety issues through race conditions.","modified":"2025-07-16T08:13:10.077689Z","published":"2021-04-14T07:15:00Z","withdrawn":"2025-07-18T16:44:19Z","upstream":["CVE-2017-20004"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-20004"},{"type":"REPORT","url":"https://github.com/rust-lang/rust/issues/41622"},{"type":"REPORT","url":"https://github.com/rust-lang/rust/pull/41624"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-20004"}],"affected":[{"package":{"name":"rustc","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/rustc@1.47.0+dfsg1+llvm-1ubuntu1~18.04.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"}]}],"versions":["1.18.0+dfsg1-4ubuntu1","1.24.1+dfsg1+llvm-0ubuntu1","1.24.1+dfsg1+llvm-0ubuntu2","1.25.0+dfsg1+llvm-0ubuntu1","1.28.0+dfsg1+llvm-0ubuntu1~18.04.1","1.30.0+dfsg1+llvm-2ubuntu1~18.04.1","1.31.0+dfsg1+llvm-2ubuntu1~18.04.1","1.32.0+dfsg1+llvm-1ubuntu1~18.04.1","1.34.1+dfsg2+llvm-0ubuntu1~18.04.1","1.35.0+dfsg0.1+llvm-0ubuntu1~18.04.1","1.36.0+dfsg1+llvm-2ubuntu1~18.04.1","1.37.0+dfsg1+llvm-1ubuntu1~18.04.1","1.39.0+dfsg1+llvm-3ubuntu1~18.04.1","1.41.0+dfsg1+llvm-0ubuntu1~18.04.1","1.43.0+dfsg1+llvm-1~exp1ubuntu2~18.04.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libstd-rust-1.47","binary_version":"1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"},{"binary_name":"libstd-rust-1.47-dbgsym","binary_version":"1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"},{"binary_name":"libstd-rust-dev","binary_version":"1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"},{"binary_name":"rust-doc","binary_version":"1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"},{"binary_name":"rust-gdb","binary_version":"1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"},{"binary_name":"rust-lldb","binary_version":"1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"},{"binary_name":"rust-src","binary_version":"1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"},{"binary_name":"rustc","binary_version":"1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"},{"binary_name":"rustc-dbgsym","binary_version":"1.47.0+dfsg1+llvm-1ubuntu1~18.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-20004.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}