Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2023-38497

7.9 · HIGH
Published Aug 4, 2023 rust-lang CWE-278 EPSS 0.70% (51th pctl)

Overview

CVE-2023-38497 is a high-severity vulnerability affecting rust-lang cargo. It was published on August 4, 2023 and has a CVSS 3.1 base score of 7.9 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.9, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

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

Remediation

Check the references section for vendor advisories and patches from rust-lang. Update cargo to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
rust-lang cargo >= 0, < 0.72.2 Affected

Frequently Asked Questions

What is CVE-2023-38497?

CVE-2023-38497 is a high-severity vulnerability affecting rust-lang cargo. It was published on August 4, 2023 and has a CVSS 3.1 base score of 7.9 (HIGH).

How severe is CVE-2023-38497?

This vulnerability has a CVSS 3.1 base score of 7.9, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2023-38497?

Check the references section for vendor advisories and patches from rust-lang. Update cargo to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2023-38497?

CyberStrike's AI-powered security agents can automatically detect CVE-2023-38497 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.