
CVE catalog
CVE-2023-38497
cargo: CVE-2023-38497
- Severity
- Medium · CVSS 6.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.70% · Oct 25, 2026
Cargo downloads the Rust project’s dependencies and compiles the project. Cargo prior to version 0.72.2, bundled with Rust prior to version 1.71.1, did not respect the umask when extracting crate archives on UNIX-like systems. If the user downloaded a crate containing files writeable by any local user, another local user could exploit this to change the source code compiled and executed by the current user. To prevent existing cached extractions from being exploitable, the Cargo binary version 0.72.2 included in Rust 1.71.1 or later will purge caches generated by older Cargo versions automatically. As a workaround, configure one's system to prevent other local users from accessing the Cargo directory, usually located in `~/.cargo`.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | cargo | bookworm | 0.66.0+ds1-1 | vulnerable |
| Debian | rust-cargo | sid | 0.99.0-1 | fixed |
| Debian | rust-cargo | forky | 0.99.0-1 | fixed |
| Debian | rust-cargo | trixie | 0.86.0-2 | fixed |
| Debian | rust-cargo | bookworm | 0.66.0-1 | vulnerable |
| Alpine | rust | 3.19 | 1.71.1-r0 | fixed |
| Alpine | rust | 3.20 | 1.71.1-r0 | fixed |
| Alpine | rust | 3.21 | 1.71.1-r0 | fixed |
| Alpine | rust | 3.22 | 1.71.1-r0 | fixed |
| Alpine | rust | 3.23 | 1.71.1-r0 | fixed |
| Alpine | rust | 3.24 | 1.71.1-r0 | fixed |
| Ubuntu | cargo | pro | 0.52.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.53.0-0ubuntu2 | vulnerable |
| Ubuntu | cargo | pro | 0.54.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.54.0-0ubuntu2 | vulnerable |
| Ubuntu | cargo | pro | 0.57.0+ubuntu-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.58.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.60.0ubuntu1-0ubuntu1~22.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.62.0ubuntu0libgit2-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.22.04 | vulnerable |
| Ubuntu | cargo | pro | 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2 | vulnerable |
| Ubuntu | cargo | pro | 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1 | fixed |
| Ubuntu | rust-cargo | pro | 0.43.1-4 | vulnerable |
| Ubuntu | rust-cargo | pro | 0.57.0-1 | vulnerable |
| Ubuntu | rust-cargo | pro | 0.57.0-1ubuntu0.1~esm1 | fixed |
| Ubuntu | cargo | pro | 0.52.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.53.0-0ubuntu2 | vulnerable |
| Ubuntu | cargo | pro | 0.54.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.54.0-0ubuntu2 | vulnerable |
| Ubuntu | cargo | pro | 0.57.0+ubuntu-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.58.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.60.0ubuntu1-0ubuntu1~22.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.62.0ubuntu0libgit2-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.22.04 | vulnerable |
| Ubuntu | cargo | pro | 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2 | vulnerable |
| Ubuntu | cargo | pro | 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1 | fixed |
| Ubuntu | rust-cargo | pro | 0.43.1-4 | vulnerable |
| Ubuntu | rust-cargo | pro | 0.57.0-1 | vulnerable |
| Ubuntu | rust-cargo | pro | 0.57.0-1ubuntu0.1~esm1 | fixed |
| Ubuntu | rust-cargo | 24.04 | 0.66.0-5 | vulnerable |
| Ubuntu | rust-cargo | 24.04 | 0.66.0-6 | vulnerable |
| Ubuntu | rust-cargo | 24.04 | 0.70.1-1 | vulnerable |
| Ubuntu | rust-cargo | 24.04 | 0.70.1-2 | vulnerable |
| Ubuntu | rustc | 24.04 | 1.71.1+dfsg0ubuntu2-0ubuntu1 | fixed |
| Opensuse | rust1.71 | tumbleweed | 1.71.1-1.1 | fixed |
| Suse | rust1.71 | linux enterprise module for development tools 15 sp4 | 1.71.1-150400.9.6.1 | fixed |
| Suse | rust1.71 | linux enterprise module for development tools 15 sp5 | 1.71.1-150400.9.6.1 | fixed |
| Opensuse | rust1.71 | leap 15.4 | 1.71.1-150400.9.6.1 | fixed |
| Opensuse | rust1.71 | leap 15.5 | 1.71.1-150400.9.6.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | cargo | source | bookworm | (unfixed) | not yet assigned | Not reported | [1043553] |
| Debian | rust-cargo | source | sid | 0.76.0-1 | not yet assigned | Not reported | [1043554] |
| Debian | rust-cargo | source | forky | 0.76.0-1 | not yet assigned | Not reported | [1043554] |
| Debian | rust-cargo | source | trixie | 0.76.0-1 | not yet assigned | Not reported | [1043554] |
| Debian | rust-cargo | source | bookworm | (unfixed) | not yet assigned | Not reported | [1043554] |
| Alpine | rust | apk | 3.19 | 1.71.1-r0 | Not reported | ALPINE-CVE-2023-38497 | Not reported |
| Alpine | rust | apk | 3.20 | 1.71.1-r0 | Not reported | ALPINE-CVE-2023-38497 | Not reported |
| Alpine | rust | apk | 3.21 | 1.71.1-r0 | Not reported | ALPINE-CVE-2023-38497 | Not reported |
| Alpine | rust | apk | 3.22 | 1.71.1-r0 | Not reported | ALPINE-CVE-2023-38497 | Not reported |
| Alpine | rust | apk | 3.23 | 1.71.1-r0 | Not reported | ALPINE-CVE-2023-38497 | Not reported |
| Alpine | rust | apk | 3.24 | 1.71.1-r0 | Not reported | ALPINE-CVE-2023-38497 | Not reported |
| Ubuntu | cargo | deb | pro | 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1 | Not reported | USN-6275-1 | Not reported |
| Ubuntu | rust-cargo | deb | pro | 0.57.0-1ubuntu0.1~esm1 | Not reported | USN-6275-1 | Not reported |
| Ubuntu | cargo | deb | pro | 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1 | Not reported | UBUNTU-CVE-2023-38497 | Not reported |
| Ubuntu | rust-cargo | deb | pro | 0.57.0-1ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2023-38497 | Not reported |
| Ubuntu | rustc | deb | 24.04 | 1.71.1+dfsg0ubuntu2-0ubuntu1 | Not reported | UBUNTU-CVE-2023-38497 | Not reported |
| Opensuse | rust1.71 | rpm | tumbleweed | 1.71.1-1.1 | Not reported | OPENSUSE-SU-2024:13101-1 | Not reported |
| Suse | rust1.71 | rpm | linux enterprise module for development tools 15 sp4 | 1.71.1-150400.9.6.1 | Not reported | SUSE-SU-2023:3251-1 | Not reported |
| Suse | rust1.71 | rpm | linux enterprise module for development tools 15 sp5 | 1.71.1-150400.9.6.1 | Not reported | SUSE-SU-2023:3251-1 | Not reported |
| Opensuse | rust1.71 | rpm | leap 15.4 | 1.71.1-150400.9.6.1 | Not reported | SUSE-SU-2023:3251-1 | Not reported |
| Opensuse | rust1.71 | rpm | leap 15.5 | 1.71.1-150400.9.6.1 | Not reported | SUSE-SU-2023:3251-1 | Not reported |
[Debian bug #1043553][Debian bug #1043554]
Notes
[bookworm] cargo: Minor issue [bookworm] rust-cargo: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2023_4635.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2023-38497]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-38497]
- [https://osv.dev/vulnerability/SUSE-SU-2023:3251-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-38497]
- [https://osv.dev/vulnerability/USN-6275-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13101-1]
- [https://security-tracker.debian.org/tracker/CVE-2023-38497]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-38497.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-2062.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]