Security mailing lists by PureSourceCode

CVE-2023-38497

HIGH 7.3CVSS 3.1

Cargo not respecting umask when extracting crate archives

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.

Published
4 Aug 2023
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-278CWE-732
Also known as
GHSA-j3xp-wfr4-hx87
Sources
NVDJSONOSV GHSA-j3xp-wfr4-hx87JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.9 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 7.9 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD rust-lang cargo
cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:*
< 0.72.2 0.72.2
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*
= 38
OSV crates.io cargo < 0.72.2 0.72.2

References

History

  • 25 Nov 2026 20:36 UTC · NVD: first stored (published 4 Aug 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Aug 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.