CVE-2023-38497
Cargo not respecting umask when extracting crate archives
02 Description
Cargo not respecting umask when extracting crate archives
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
- EPSS probability
- 0.70% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 52.6% of scored records. A rank, not a probability.
- NVD base score
- 7.3 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Important. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2023-08-04 15:51Z3 YR AGO
- Last updated
- 2025-02-13 17:01Z1 YR AGO
- Reserved
- 2023-07-18
- Assigning CNA
- GitHub_M
- Record state
- PUBLISHED
- Severity
- High (CVSS 7.8)
- CNA CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- Weaknesses
- Data version
- 5.1
- Document digest
- 6efdf0cebda1ae65688e3a862d9f43f3ca5c7fdf2b78f164d6ef9c72b71bb922
05 Affected products
06 References
- github.comhttps://github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87
- github.comhttps://github.com/rust-lang/cargo/pull/12443
- github.comhttps://github.com/rust-lang/cargo/commit/d78bbf4bde3c6b95caca7512f537c6f9721426ff
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Umask
- github.comhttps://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497
- www.rust-lang.orghttps://www.rust-lang.org/policies/security
- lists.fedoraproject.orghttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGKE6PGM4HIQUHPJRBQAHMELINSGN4H4/
- lists.fedoraproject.orghttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMEXGUGPW5OBSQA6URTBNDSU3RAEFOZ4/
07 Fixed in
AlmaLinux 8
- cargo Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- clippy Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-analysis Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-analyzer Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-debugger-common Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-doc Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-gdb Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-lldb Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-src Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-std-static Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-std-static-wasm32-unknown-unknown Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-std-static-wasm32-wasi Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-toolset Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rustfmt Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 9
- cargo Fixed in 1.66.1-2.el9_2
- clippy Fixed in 1.66.1-2.el9_2
- rust Fixed in 1.66.1-2.el9_2
- rust-analysis Fixed in 1.66.1-2.el9_2
- rust-analyzer Fixed in 1.66.1-2.el9_2
- rust-debugger-common Fixed in 1.66.1-2.el9_2
- rust-doc Fixed in 1.66.1-2.el9_2
- rust-gdb Fixed in 1.66.1-2.el9_2
- rust-lldb Fixed in 1.66.1-2.el9_2
- rust-src Fixed in 1.66.1-2.el9_2
- rust-std-static Fixed in 1.66.1-2.el9_2
- rust-std-static-wasm32-unknown-unknown Fixed in 1.66.1-2.el9_2
- rust-std-static-wasm32-wasi Fixed in 1.66.1-2.el9_2
- rust-toolset Fixed in 1.66.1-2.el9_2
- rustfmt Fixed in 1.66.1-2.el9_2
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 8
- cargo Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- clippy Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-analysis Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-analyzer Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-debugger-common Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-doc Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-gdb Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-lldb Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-src Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-std-static Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-std-static-wasm32-unknown-unknown Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-std-static-wasm32-wasi Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rust-toolset Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
- rustfmt Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 9
- cargo Fixed in 1.66.1-2.el9_2
- clippy Fixed in 1.66.1-2.el9_2
- rust Fixed in 1.66.1-2.el9_2
- rust-analysis Fixed in 1.66.1-2.el9_2
- rust-analyzer Fixed in 1.66.1-2.el9_2
- rust-debugger-common Fixed in 1.66.1-2.el9_2
- rust-doc Fixed in 1.66.1-2.el9_2
- rust-gdb Fixed in 1.66.1-2.el9_2
- rust-lldb Fixed in 1.66.1-2.el9_2
- rust-src Fixed in 1.66.1-2.el9_2
- rust-std-static Fixed in 1.66.1-2.el9_2
- rust-std-static-wasm32-unknown-unknown Fixed in 1.66.1-2.el9_2
- rust-std-static-wasm32-wasi Fixed in 1.66.1-2.el9_2
- rust-toolset Fixed in 1.66.1-2.el9_2
- rustfmt Fixed in 1.66.1-2.el9_2
Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- cargo No fix yet
- rust-cargo No fix yet
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- rust-cargo Fixed in 0.76.0-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- rust-cargo Fixed in 0.76.0-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 24.04 LTS
- rust-cargo No fix yet
- rustc Fixed in 1.71.1+dfsg0ubuntu2-0ubuntu1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- cargo Fixed in 0.47.0-1~exp1ubuntu1~16.04.1+esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- cargo Fixed in 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 20.04 LTS
- cargo Fixed in 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2+esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 22.04 LTS
- cargo Fixed in 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1Available with Ubuntu Pro: https://ubuntu.com/pro
- rust-cargo Fixed in 0.57.0-1ubuntu0.1~esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.