Rust-Lang Cargo vulnerabilities
7 known vulnerabilities affecting rust-lang/cargo.
Total CVEs
7
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
HIGH2MEDIUM5
Vulnerabilities
Page 1 of 1
CVE-2022-36113P3HIGHCVSS 8.1fixed in 0.65.0v= 0.66.02022-09-14
CVE-2022-36113 [HIGH] CWE-22 CVE-2022-36113: Cargo is a package manager for the rust programming language. After a package is downloaded, Cargo e
Cargo is a package manager for the rust programming language. After a package is downloaded, Cargo extracts its source code in the ~/.cargo folder on disk, making it available to the Rust projects it builds. To record when an extraction is successful, Cargo writes "ok" to the .cargo-ok file at the root of the extracted source code once it extracted all
ghsanvdosv
CVE-2026-5222P3MEDIUMCVSS 6.5≥ 1.68.0, < 1.96.02026-05-25
CVE-2026-5222 [MEDIUM] CWE-647 CVE-2026-5222: Cargo between 1.68 and 1.96 incorrectly normalized the URLs of third-party registries using the spar
Cargo between 1.68 and 1.96 incorrectly normalized the URLs of third-party registries using the sparse index protocol. If a hosting provider allowed multiple registries to be hosted with arbitrary names within the same domain, an attacker able to publish crates in a registry could obtain the credentials of others users of the same registry. The severi
nvd
CVE-2023-38497P3HIGHCVSS 7.3fixed in 0.72.22023-08-04
CVE-2023-38497 [HIGH] CWE-278 CVE-2023-38497: Cargo downloads the Rust project’s dependencies and compiles the project. Cargo prior to version 0.7
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 t
ghsanvdosv
CVE-2022-36114P4MEDIUMCVSS 6.5fixed in 0.65.0v= 0.66.02022-09-14
CVE-2022-36114 [MEDIUM] CWE-400 CVE-2022-36114: Cargo is a package manager for the rust programming language. It was discovered that Cargo did not l
Cargo is a package manager for the rust programming language. It was discovered that Cargo did not limit the amount of data extracted from compressed archives. An attacker could upload to an alternate registry a specially crafted package that extracts way more data than its size (also known as a "zip bomb"), exhausting the disk space on the machine
ghsanvdosv
CVE-2022-46176P4MEDIUMCVSS 5.9≤ 0.67.02023-01-11
CVE-2022-46176 [MEDIUM] CWE-347 CVE-2022-46176: Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perfo
Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perform SSH host key verification when cloning indexes and dependencies via SSH. An attacker could exploit this to perform man-in-the-middle (MITM) attacks. This vulnerability has been assigned CVE-2022-46176. All Rust versions containing Cargo before 1.66
ghsanvdosv
CVE-2026-5223P4MEDIUMCVSS 5.3fixed in 1.96.02026-05-25
CVE-2026-5223 [MEDIUM] CWE-61 CVE-2026-5223: Cargo incorrectly handled symlinks inside of crate tarballs downloaded from third-party registries,
Cargo incorrectly handled symlinks inside of crate tarballs downloaded from third-party registries, allowing a malicious crate to override the source code of another crate from the same registry. The severity of the vulnerability is **medium** for users of third-party registries. Users of crates.io are **not affected**, as crates.io forbids uploading cr
nvd
CVE-2023-40030P4MEDIUMCVSS 6.1v>= 1.60.0, < 1.722023-08-24
CVE-2023-40030 [MEDIUM] CWE-79 CVE-2023-40030: Cargo downloads a Rust project’s dependencies and compiles the project. Starting in Rust 1.60.0 and
Cargo downloads a Rust project’s dependencies and compiles the project. Starting in Rust 1.60.0 and prior to 1.72, Cargo did not escape Cargo feature names when including them in the report generated by `cargo build --timings`. A malicious package included as a dependency may inject nearly arbitrary HTML here, potentially leading to cross-site scripti
ghsanvdosv