CVE & CISA-KEV Catalog

CVE-2023-38497

HIGH
7.9
CVSS v3
NVD

Description

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`.

How to fix

Remediation Available
cargoRed Hat / RHEL
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
cargoRocky
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
cargo-0:1.58.1Red Hat / RHEL
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.aarch64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.ppc64le::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.x86_64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.s390x::rust-toolset:rhel8RHSA-2024:3428
cargo-0:1.58.1Rocky
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.aarch64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.s390x::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.ppc64le::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.x86_64::rust-toolset:rhel8RHSA-2024:3428
cargo-0:1.66.1Rocky
Fixed in:2.module+el8.8.0+19613+f0bba33b.x86_64::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.s390x::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.ppc64le::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.aarch64::rust-toolset:rhel8RHSA-2023:4635
cargo-0:1.66.1Red Hat / RHEL
Fixed in:2.module+el8.8.0+19613+f0bba33b.x86_64::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.s390x::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.aarch64::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.ppc64le::rust-toolset:rhel8RHSA-2023:4635
cargo-debuginfoRed Hat / RHEL
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
cargo-debuginfoRocky
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
cargo-debuginfo-0:1.58.1Red Hat / RHEL
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.s390x::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.aarch64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.x86_64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.ppc64le::rust-toolset:rhel8RHSA-2024:3428
cargo-debuginfo-0:1.58.1Rocky
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.ppc64le::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.aarch64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.s390x::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.x86_64::rust-toolset:rhel8RHSA-2024:3428
cargo-debuginfo-0:1.66.1Rocky
Fixed in:2.module+el8.8.0+19613+f0bba33b.x86_64::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.s390x::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.ppc64le::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.aarch64::rust-toolset:rhel8RHSA-2023:4635
cargo-debuginfo-0:1.66.1Red Hat / RHEL
Fixed in:2.module+el8.8.0+19613+f0bba33b.aarch64::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.ppc64le::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.s390x::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.x86_64::rust-toolset:rhel8RHSA-2023:4635
cargo-docRocky
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
cargo-docRed Hat / RHEL
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
cargo-doc-0:1.58.1Red Hat / RHEL
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.noarch::rust-toolset:rhel8RHSA-2024:3428
cargo-doc-0:1.58.1Rocky
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.noarch::rust-toolset:rhel8RHSA-2024:3428
clippyRocky
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
clippyRed Hat / RHEL
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
clippy-0:1.58.1Rocky
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.s390x::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.ppc64le::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.aarch64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.x86_64::rust-toolset:rhel8RHSA-2024:3428
clippy-0:1.58.1Red Hat / RHEL
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.ppc64le::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.x86_64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.aarch64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.s390x::rust-toolset:rhel8RHSA-2024:3428
clippy-0:1.66.1Rocky
Fixed in:2.module+el8.8.0+19613+f0bba33b.ppc64le::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.s390x::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.aarch64::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.x86_64::rust-toolset:rhel8RHSA-2023:4635
clippy-0:1.66.1Red Hat / RHEL
Fixed in:2.module+el8.8.0+19613+f0bba33b.x86_64::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.aarch64::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.ppc64le::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.s390x::rust-toolset:rhel8RHSA-2023:4635
clippy-debuginfoRed Hat / RHEL
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
clippy-debuginfoRocky
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
Fixed in:0:1.66.1-2.el9_2RHSA-2023:4634
clippy-debuginfo-0:1.58.1Red Hat / RHEL
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.x86_64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.ppc64le::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.s390x::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.aarch64::rust-toolset:rhel8RHSA-2024:3428
clippy-debuginfo-0:1.58.1Rocky
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.aarch64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.ppc64le::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.x86_64::rust-toolset:rhel8RHSA-2024:3428
Fixed in:1.module+el8.6.0+21522+a4bc17c1.1.s390x::rust-toolset:rhel8RHSA-2024:3428
clippy-debuginfo-0:1.66.1Red Hat / RHEL
Fixed in:2.module+el8.8.0+19613+f0bba33b.x86_64::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.s390x::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.ppc64le::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.aarch64::rust-toolset:rhel8RHSA-2023:4635
clippy-debuginfo-0:1.66.1Rocky
Fixed in:2.module+el8.8.0+19613+f0bba33b.s390x::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.ppc64le::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.aarch64::rust-toolset:rhel8RHSA-2023:4635
Fixed in:2.module+el8.8.0+19613+f0bba33b.x86_64::rust-toolset:rhel8RHSA-2023:4635
rlsRocky
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
rlsRed Hat / RHEL
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418
Fixed in:0:1.58.1-1.el9_0.1RHSA-2024:3418

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired
ScopeChanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Exploit Intelligence

0.70%probability of exploitation in 30 days
51stpercentile

Moderate risk: more likely to be exploited than 51% of all known CVEs.

References

Related Vulnerabilities

Other CWE-278 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-36538High8.80.6%--
CVE-2024-37769High8.80.5%--
CVE-2025-2947High7.20.4%--
CVE-2026-6265High8.80.3%-Fix
CVE-2024-38531Low3.60.1%-Fix
CVE-2026-71477Medium6.70.1%--

Common questions

How do I fix CVE-2023-38497?

Published advisories record a fix for 164 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2023-38497 being actively exploited?

Not that we know of. CVE-2023-38497 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.70% is the estimated probability that it will be exploited in the next 30 days. That is higher than 51% of all scored CVEs.

How severe is CVE-2023-38497?

CVE-2023-38497 has a CVSS v3 base score of 7.9, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2023-38497 affect?

Published advisories record a fix for cargo (Red Hat / RHEL), cargo (Rocky), cargo-0:1.58.1 (Red Hat / RHEL), cargo-0:1.58.1 (Rocky), and 160 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2023-38497
CVE-2023-38497 severity badge

Markdown

[![CVE-2023-38497](https://tridentstack.com/cve/badge/CVE-2023-38497.svg)](https://tridentstack.com/cve/CVE-2023-38497)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-38497"><img src="https://tridentstack.com/cve/badge/CVE-2023-38497.svg" alt="CVE-2023-38497"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.