CVE catalog

CVE-2023-38497

cargo: CVE-2023-38497

[CVE catalog]

Severity
Medium · CVSS 6.7CVSS: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.

DistributionPackageReleaseVersionStatus
Debiancargobookworm0.66.0+ds1-1vulnerable
Debianrust-cargosid0.99.0-1fixed
Debianrust-cargoforky0.99.0-1fixed
Debianrust-cargotrixie0.86.0-2fixed
Debianrust-cargobookworm0.66.0-1vulnerable
Alpinerust3.191.71.1-r0fixed
Alpinerust3.201.71.1-r0fixed
Alpinerust3.211.71.1-r0fixed
Alpinerust3.221.71.1-r0fixed
Alpinerust3.231.71.1-r0fixed
Alpinerust3.241.71.1-r0fixed
Ubuntucargopro0.52.0-0ubuntu1vulnerable
Ubuntucargopro0.53.0-0ubuntu2vulnerable
Ubuntucargopro0.54.0-0ubuntu1vulnerable
Ubuntucargopro0.54.0-0ubuntu2vulnerable
Ubuntucargopro0.57.0+ubuntu-0ubuntu1vulnerable
Ubuntucargopro0.58.0-0ubuntu1vulnerable
Ubuntucargopro0.60.0ubuntu1-0ubuntu1~22.04.1vulnerable
Ubuntucargopro0.62.0ubuntu0libgit2-0ubuntu0.22.04.1vulnerable
Ubuntucargopro0.66.0+ds0ubuntu0.libgit2-0ubuntu0.22.04vulnerable
Ubuntucargopro0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2vulnerable
Ubuntucargopro0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1fixed
Ubunturust-cargopro0.43.1-4vulnerable
Ubunturust-cargopro0.57.0-1vulnerable
Ubunturust-cargopro0.57.0-1ubuntu0.1~esm1fixed
Ubuntucargopro0.52.0-0ubuntu1vulnerable
Ubuntucargopro0.53.0-0ubuntu2vulnerable
Ubuntucargopro0.54.0-0ubuntu1vulnerable
Ubuntucargopro0.54.0-0ubuntu2vulnerable
Ubuntucargopro0.57.0+ubuntu-0ubuntu1vulnerable
Ubuntucargopro0.58.0-0ubuntu1vulnerable
Ubuntucargopro0.60.0ubuntu1-0ubuntu1~22.04.1vulnerable
Ubuntucargopro0.62.0ubuntu0libgit2-0ubuntu0.22.04.1vulnerable
Ubuntucargopro0.66.0+ds0ubuntu0.libgit2-0ubuntu0.22.04vulnerable
Ubuntucargopro0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2vulnerable
Ubuntucargopro0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1fixed
Ubunturust-cargopro0.43.1-4vulnerable
Ubunturust-cargopro0.57.0-1vulnerable
Ubunturust-cargopro0.57.0-1ubuntu0.1~esm1fixed
Ubunturust-cargo24.040.66.0-5vulnerable
Ubunturust-cargo24.040.66.0-6vulnerable
Ubunturust-cargo24.040.70.1-1vulnerable
Ubunturust-cargo24.040.70.1-2vulnerable
Ubunturustc24.041.71.1+dfsg0ubuntu2-0ubuntu1fixed
Opensuserust1.71tumbleweed1.71.1-1.1fixed
Suserust1.71linux enterprise module for development tools 15 sp41.71.1-150400.9.6.1fixed
Suserust1.71linux enterprise module for development tools 15 sp51.71.1-150400.9.6.1fixed
Opensuserust1.71leap 15.41.71.1-150400.9.6.1fixed
Opensuserust1.71leap 15.51.71.1-150400.9.6.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancargosourcebookworm(unfixed)not yet assignedNot reported[1043553]
Debianrust-cargosourcesid0.76.0-1not yet assignedNot reported[1043554]
Debianrust-cargosourceforky0.76.0-1not yet assignedNot reported[1043554]
Debianrust-cargosourcetrixie0.76.0-1not yet assignedNot reported[1043554]
Debianrust-cargosourcebookworm(unfixed)not yet assignedNot reported[1043554]
Alpinerustapk3.191.71.1-r0Not reportedALPINE-CVE-2023-38497Not reported
Alpinerustapk3.201.71.1-r0Not reportedALPINE-CVE-2023-38497Not reported
Alpinerustapk3.211.71.1-r0Not reportedALPINE-CVE-2023-38497Not reported
Alpinerustapk3.221.71.1-r0Not reportedALPINE-CVE-2023-38497Not reported
Alpinerustapk3.231.71.1-r0Not reportedALPINE-CVE-2023-38497Not reported
Alpinerustapk3.241.71.1-r0Not reportedALPINE-CVE-2023-38497Not reported
Ubuntucargodebpro0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1Not reportedUSN-6275-1Not reported
Ubunturust-cargodebpro0.57.0-1ubuntu0.1~esm1Not reportedUSN-6275-1Not reported
Ubuntucargodebpro0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1Not reportedUBUNTU-CVE-2023-38497Not reported
Ubunturust-cargodebpro0.57.0-1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2023-38497Not reported
Ubunturustcdeb24.041.71.1+dfsg0ubuntu2-0ubuntu1Not reportedUBUNTU-CVE-2023-38497Not reported
Opensuserust1.71rpmtumbleweed1.71.1-1.1Not reportedOPENSUSE-SU-2024:13101-1Not reported
Suserust1.71rpmlinux enterprise module for development tools 15 sp41.71.1-150400.9.6.1Not reportedSUSE-SU-2023:3251-1Not reported
Suserust1.71rpmlinux enterprise module for development tools 15 sp51.71.1-150400.9.6.1Not reportedSUSE-SU-2023:3251-1Not reported
Opensuserust1.71rpmleap 15.41.71.1-150400.9.6.1Not reportedSUSE-SU-2023:3251-1Not reported
Opensuserust1.71rpmleap 15.51.71.1-150400.9.6.1Not reportedSUSE-SU-2023:3251-1Not 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