CVE-2023-38497
CVE-2023-38497 · Cargo not respecting umask when extracting crate archives
Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.
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`.
CVSS 7.8 · Hoch · EPSS 0,7% · Korrektur verfügbar
- Veröffentlicht
- Aktualisiert
Technologie-Stack: system
Betroffene Produkte und Versionen
cargo
- Softwareversionen
- < 0.72.2: Betroffen
Keine Korrektur veröffentlicht
cargo Debian:12
- Softwareversionen
- 0.66.0+ds1-1
- 0.66.0+ds2-1
- 0.66.0+ds2-2
- 0.70.1+ds1-1
- 0.70.1+ds1-1~exp1
- 0.70.1+ds1-2
- 0.70.1+ds1-3
- 0.70.1-1~exp1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
rust-cargo Debian:12
- Softwareversionen
- 0.66.0-1
- 0.66.0-2
- 0.66.0-3
- 0.66.0-4
- 0.66.0-5
- 0.66.0-6
- 0.70.1-1
- 0.70.1-2
- 0.70.1-3
- 0.76.0-1
- 0.76.0-2
- 0.76.0-3
- 0.76.0-4
- 0.81.0-1
- 0.81.0-2
- 0.81.0-3
- 0.82.0-1
- 0.83.0-1
- 0.83.0-2
- 0.84.0-1
- 0.85.0-1
- 0.86.0-1
- 0.86.0-2
- 0.86.0-3
- 0.86.0-4
- 0.91.0-1
- 0.91.0-2
- 0.91.0-3
- 0.91.0-4
- 0.91.0-5
- 0.96.0-1
- 0.96.0-2
- 0.99.0-1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
rust-cargo Debian:13
- Betroffene Versionsbereiche
- ECOSYSTEM: < 0.76.0-1
Auf 0.76.0-1 aktualisieren
rust-cargo Debian:14
- Betroffene Versionsbereiche
- ECOSYSTEM: < 0.76.0-1
Auf 0.76.0-1 aktualisieren
cargo Ubuntu:Pro:16.04:LTS
- Softwareversionen
- 0.8.0-1
- 0.16.0-0ubuntu1~16.04.1
- 0.18.0-0ubuntu0.16.04.1
- 0.22.0-0ubuntu0.16.04.1
- 0.23.0-0ubuntu0.16.04.1
- 0.25.0-1ubuntu1~16.04.1
- 0.26.0-0ubuntu2~16.04.1
- 0.29.0-1ubuntu1~16.04.1
- 0.31.0-3ubuntu1~16.04.1
- 0.32.0-1~exp1ubuntu1~16.04.1
- 0.33.0-1ubuntu1~16.04.1
- 0.35.0-0ubuntu1~16.04.1
- 0.36.0-0ubuntu1~16.04.1
- 0.37.0-3ubuntu1~16.04.1
- 0.38.0-0ubuntu1~16.04.1
- 0.40.0-3ubuntu1~16.04.1
- 0.42.0-0ubuntu1~16.04.1
- 0.44.1-0ubuntu1~16.04.1
- 0.47.0-1~exp1ubuntu1~16.04.1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 0.47.0-1~exp1ubuntu1~16.04.1+esm1
Auf 0.47.0-1~exp1ubuntu1~16.04.1+esm1 aktualisieren
cargo Ubuntu:Pro:18.04:LTS
- Softwareversionen
- 0.19.0-0ubuntu1
- 0.22.0-0ubuntu1
- 0.22.0-0ubuntu2
- 0.23.0-0ubuntu1
- 0.24.0-1ubuntu1
- 0.25.0-1ubuntu1
- 0.26.0-0ubuntu1
- 0.26.0-0ubuntu2
- 0.29.0-1ubuntu1~18.04.1
- 0.31.0-3ubuntu1~18.04.4
- 0.32.0-1~exp1ubuntu1~18.04.1
- 0.33.0-1ubuntu1~18.04.1
- 0.35.0-0ubuntu1~18.04.1
- 0.36.0-0ubuntu1~18.04.1
- 0.37.0-3ubuntu1~18.04.1
- 0.38.0-0ubuntu1~18.04.1
- 0.40.0-3ubuntu1~18.04.1
- 0.42.0-0ubuntu1~18.04.1
- 0.44.1-0ubuntu1~18.04.1
- 0.47.0-1~exp1ubuntu1~18.04.1
- 0.52.0-0ubuntu1~18.04.1
- 0.54.0-0ubuntu1~18.04.1
- 0.58.0-0ubuntu1~18.04.1
- 0.60.0ubuntu1-0ubuntu1~18.04.1
- 0.62.0ubuntu0libgit2-0ubuntu0.18.04.1
- 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04
- Betroffene Versionsbereiche
- ECOSYSTEM: < 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1
Auf 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1 aktualisieren
cargo Ubuntu:Pro:20.04:LTS
- Softwareversionen
- 0.37.0-3ubuntu2
- 0.38.0-0ubuntu1
- 0.39.0-0ubuntu1
- 0.39.0+really0.38.0-0ubuntu1
- 0.39.0+really0.39.0-0ubuntu1
- 0.40.0-3ubuntu1
- 0.40.0-3ubuntu2
- 0.41.0-0ubuntu1
- 0.42.0-0ubuntu1
- 0.44.1-0ubuntu1~20.04.1
- 0.47.0-1~exp1ubuntu1~20.04.1
- 0.52.0-0ubuntu1~20.04.1
- 0.54.0-0ubuntu1~20.04.1
- 0.58.0-0ubuntu1~20.04.1
- 0.60.0ubuntu1-0ubuntu1~20.04.1
- 0.62.0ubuntu0libgit2-0ubuntu0.20.04.1
- 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.20.04
- 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2
- Betroffene Versionsbereiche
- ECOSYSTEM: < 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2+esm1
Auf 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2+esm1 aktualisieren
cargo Ubuntu:Pro:22.04:LTS
- Softwareversionen
- 0.52.0-0ubuntu1
- 0.53.0-0ubuntu2
- 0.54.0-0ubuntu1
- 0.54.0-0ubuntu2
- 0.57.0+ubuntu-0ubuntu1
- 0.58.0-0ubuntu1
- 0.60.0ubuntu1-0ubuntu1~22.04.1
- 0.62.0ubuntu0libgit2-0ubuntu0.22.04.1
- 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.22.04
- 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2
- Betroffene Versionsbereiche
- ECOSYSTEM: < 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1
Auf 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1 aktualisieren
rust-cargo Ubuntu:Pro:22.04:LTS
- Softwareversionen
- 0.43.1-4
- 0.57.0-1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 0.57.0-1ubuntu0.1~esm1
Auf 0.57.0-1ubuntu0.1~esm1 aktualisieren
rust-cargo Ubuntu:24.04:LTS
- Softwareversionen
- 0.66.0-5
- 0.66.0-6
- 0.70.1-1
- 0.70.1-2
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
rustc Ubuntu:24.04:LTS
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.71.1+dfsg0ubuntu2-0ubuntu1
Auf 1.71.1+dfsg0ubuntu2-0ubuntu1 aktualisieren
Originalquellen
- https://github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87
- https://github.com/rust-lang/cargo/pull/12443
- https://github.com/rust-lang/cargo/commit/d78bbf4bde3c6b95caca7512f537c6f9721426ff
- https://en.wikipedia.org/wiki/Umask
- https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497
- https://www.rust-lang.org/policies/security
- https://lists.fedoraproject.org/archives/list/[email protected]/message/QGKE6PGM4HIQUHPJRBQAHMELINSGN4H4/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/QMEXGUGPW5OBSQA6URTBNDSU3RAEFOZ4/
- https://nvd.nist.gov/vuln/detail/CVE-2023-38497