CVE-2023-38497

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-38497
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-38497.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-38497
Aliases
Related
Published
2023-08-04T16:15:10Z
Modified
2024-12-05T15:37:48.694305Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Alpine:v3.19 / rust

Package

Name
rust
Purl
pkg:apk/alpine/rust?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.71.1-r0

Affected versions

1.*

1.10.0-r0
1.10.0-r1
1.16.0-r0
1.16.0-r1
1.16.0-r2
1.16.0-r3
1.16.0-r4
1.16.0-r5
1.17.0-r0
1.17.0-r1
1.17.0-r2
1.17.0-r3
1.18.0-r1
1.19.0-r0
1.20.0-r0
1.21.0-r0
1.21.0-r1
1.22.1-r0
1.23.0-r0
1.23.0-r1
1.24.0-r0
1.24.1-r0
1.25.0-r0
1.26.0-r0
1.26.0-r1
1.26.2-r0
1.27.0-r0
1.27.2-r0
1.28.0-r0
1.29.0-r0
1.30.0-r0
1.30.0-r1
1.31.1-r1
1.31.1-r2
1.32.0-r0
1.33.0-r0
1.34.2-r0
1.34.2-r1
1.35.0-r0
1.36.0-r0
1.37.0-r0
1.38.0-r0
1.38.0-r1
1.38.0-r2
1.39.0-r0
1.40.0-r0
1.40.0-r1
1.41.0-r0
1.41.0-r1
1.41.1-r0
1.42.0-r0
1.42.0-r1
1.42.0-r2
1.43.0-r0
1.43.1-r0
1.43.1-r1
1.44.0-r0
1.44.1-r0
1.45.1-r0
1.45.2-r0
1.46.0-r0
1.46.0-r1
1.46.0-r2
1.47.0-r0
1.47.0-r1
1.47.0-r2
1.48.0-r0
1.49.0-r0
1.50.0-r0
1.50.0-r1
1.51.0-r0
1.51.0-r1
1.51.0-r2
1.52.0-r0
1.52.1-r0
1.52.1-r1
1.53.0-r0
1.54.0-r0
1.55.0-r0
1.55.0-r1
1.55.0-r2
1.55.0-r3
1.56.1-r0
1.57.0-r0
1.58.0-r0
1.58.0-r1
1.58.1-r0
1.59.0-r0
1.59.0-r1
1.60.0-r0
1.60.0-r1
1.60.0-r2
1.60.0-r3
1.61.0-r0
1.62.0-r0
1.62.0-r1
1.62.1-r0
1.62.1-r1
1.62.1-r2
1.63.0-r0
1.64.0-r0
1.64.0-r1
1.64.0-r2
1.65.0-r0
1.65.0-r1
1.66.0-r0
1.66.1-r0
1.66.1-r1
1.66.1-r2
1.67.0-r0
1.67.0-r1
1.67.0-r2
1.67.1-r0
1.68.0-r0
1.68.0-r1
1.68.1-r0
1.68.2-r0
1.69.0-r0
1.69.0-r1
1.69.0-r2
1.69.0-r3
1.69.0-r4
1.69.0-r5
1.69.0-r6
1.69.0-r7
1.69.0-r8
1.69.0-r9
1.69.0-r10
1.70.0-r0
1.70.0-r1
1.70.0-r2
1.70.0-r3
1.70.0-r4
1.71.0-r0
1.71.0-r1
1.71.0-r2

Alpine:v3.20 / rust

Package

Name
rust
Purl
pkg:apk/alpine/rust?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.71.1-r0

Affected versions

1.*

1.10.0-r0
1.10.0-r1
1.16.0-r0
1.16.0-r1
1.16.0-r2
1.16.0-r3
1.16.0-r4
1.16.0-r5
1.17.0-r0
1.17.0-r1
1.17.0-r2
1.17.0-r3
1.18.0-r1
1.19.0-r0
1.20.0-r0
1.21.0-r0
1.21.0-r1
1.22.1-r0
1.23.0-r0
1.23.0-r1
1.24.0-r0
1.24.1-r0
1.25.0-r0
1.26.0-r0
1.26.0-r1
1.26.2-r0
1.27.0-r0
1.27.2-r0
1.28.0-r0
1.29.0-r0
1.30.0-r0
1.30.0-r1
1.31.1-r1
1.31.1-r2
1.32.0-r0
1.33.0-r0
1.34.2-r0
1.34.2-r1
1.35.0-r0
1.36.0-r0
1.37.0-r0
1.38.0-r0
1.38.0-r1
1.38.0-r2
1.39.0-r0
1.40.0-r0
1.40.0-r1
1.41.0-r0
1.41.0-r1
1.41.1-r0
1.42.0-r0
1.42.0-r1
1.42.0-r2
1.43.0-r0
1.43.1-r0
1.43.1-r1
1.44.0-r0
1.44.1-r0
1.45.1-r0
1.45.2-r0
1.46.0-r0
1.46.0-r1
1.46.0-r2
1.47.0-r0
1.47.0-r1
1.47.0-r2
1.48.0-r0
1.49.0-r0
1.50.0-r0
1.50.0-r1
1.51.0-r0
1.51.0-r1
1.51.0-r2
1.52.0-r0
1.52.1-r0
1.52.1-r1
1.53.0-r0
1.54.0-r0
1.55.0-r0
1.55.0-r1
1.55.0-r2
1.55.0-r3
1.56.1-r0
1.57.0-r0
1.58.0-r0
1.58.0-r1
1.58.1-r0
1.59.0-r0
1.59.0-r1
1.60.0-r0
1.60.0-r1
1.60.0-r2
1.60.0-r3
1.61.0-r0
1.62.0-r0
1.62.0-r1
1.62.1-r0
1.62.1-r1
1.62.1-r2
1.63.0-r0
1.64.0-r0
1.64.0-r1
1.64.0-r2
1.65.0-r0
1.65.0-r1
1.66.0-r0
1.66.1-r0
1.66.1-r1
1.66.1-r2
1.67.0-r0
1.67.0-r1
1.67.0-r2
1.67.1-r0
1.68.0-r0
1.68.0-r1
1.68.1-r0
1.68.2-r0
1.69.0-r0
1.69.0-r1
1.69.0-r2
1.69.0-r3
1.69.0-r4
1.69.0-r5
1.69.0-r6
1.69.0-r7
1.69.0-r8
1.69.0-r9
1.69.0-r10
1.70.0-r0
1.70.0-r1
1.70.0-r2
1.70.0-r3
1.70.0-r4
1.71.0-r0
1.71.0-r1
1.71.0-r2

Alpine:v3.21 / rust

Package

Name
rust
Purl
pkg:apk/alpine/rust?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.71.1-r0

Affected versions

1.*

1.10.0-r0
1.10.0-r1
1.16.0-r0
1.16.0-r1
1.16.0-r2
1.16.0-r3
1.16.0-r4
1.16.0-r5
1.17.0-r0
1.17.0-r1
1.17.0-r2
1.17.0-r3
1.18.0-r1
1.19.0-r0
1.20.0-r0
1.21.0-r0
1.21.0-r1
1.22.1-r0
1.23.0-r0
1.23.0-r1
1.24.0-r0
1.24.1-r0
1.25.0-r0
1.26.0-r0
1.26.0-r1
1.26.2-r0
1.27.0-r0
1.27.2-r0
1.28.0-r0
1.29.0-r0
1.30.0-r0
1.30.0-r1
1.31.1-r1
1.31.1-r2
1.32.0-r0
1.33.0-r0
1.34.2-r0
1.34.2-r1
1.35.0-r0
1.36.0-r0
1.37.0-r0
1.38.0-r0
1.38.0-r1
1.38.0-r2
1.39.0-r0
1.40.0-r0
1.40.0-r1
1.41.0-r0
1.41.0-r1
1.41.1-r0
1.42.0-r0
1.42.0-r1
1.42.0-r2
1.43.0-r0
1.43.1-r0
1.43.1-r1
1.44.0-r0
1.44.1-r0
1.45.1-r0
1.45.2-r0
1.46.0-r0
1.46.0-r1
1.46.0-r2
1.47.0-r0
1.47.0-r1
1.47.0-r2
1.48.0-r0
1.49.0-r0
1.50.0-r0
1.50.0-r1
1.51.0-r0
1.51.0-r1
1.51.0-r2
1.52.0-r0
1.52.1-r0
1.52.1-r1
1.53.0-r0
1.54.0-r0
1.55.0-r0
1.55.0-r1
1.55.0-r2
1.55.0-r3
1.56.1-r0
1.57.0-r0
1.58.0-r0
1.58.0-r1
1.58.1-r0
1.59.0-r0
1.59.0-r1
1.60.0-r0
1.60.0-r1
1.60.0-r2
1.60.0-r3
1.61.0-r0
1.62.0-r0
1.62.0-r1
1.62.1-r0
1.62.1-r1
1.62.1-r2
1.63.0-r0
1.64.0-r0
1.64.0-r1
1.64.0-r2
1.65.0-r0
1.65.0-r1
1.66.0-r0
1.66.1-r0
1.66.1-r1
1.66.1-r2
1.67.0-r0
1.67.0-r1
1.67.0-r2
1.67.1-r0
1.68.0-r0
1.68.0-r1
1.68.1-r0
1.68.2-r0
1.69.0-r0
1.69.0-r1
1.69.0-r2
1.69.0-r3
1.69.0-r4
1.69.0-r5
1.69.0-r6
1.69.0-r7
1.69.0-r8
1.69.0-r9
1.69.0-r10
1.70.0-r0
1.70.0-r1
1.70.0-r2
1.70.0-r3
1.70.0-r4
1.71.0-r0
1.71.0-r1
1.71.0-r2

Debian:11 / cargo

Package

Name
cargo
Purl
pkg:deb/debian/cargo?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.47.0-3
0.57.0-1
0.57.0-2
0.57.0-3
0.57.0-4
0.57.0-5
0.57.0-6
0.57.0-7
0.62.0ubuntu1-0ubuntu2+ports
0.63.1-1
0.63.1-2
0.63.1-3
0.66.0-1
0.66.0+ds1-1
0.66.0+ds2-1
0.66.0+ds2-2
0.70.1-1~exp1
0.70.1+ds1-1~exp1
0.70.1+ds1-1
0.70.1+ds1-2
0.70.1+ds1-3

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / cargo

Package

Name
cargo
Purl
pkg:deb/debian/cargo?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.66.0+ds1-1
0.66.0+ds2-1
0.66.0+ds2-2
0.70.1-1~exp1
0.70.1+ds1-1~exp1
0.70.1+ds1-1
0.70.1+ds1-2
0.70.1+ds1-3

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:11 / rust-cargo

Package

Name
rust-cargo
Purl
pkg:deb/debian/rust-cargo?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.43.1-4
0.57.0-1
0.57.0-2
0.63.1-1
0.63.1-2
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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / rust-cargo

Package

Name
rust-cargo
Purl
pkg:deb/debian/rust-cargo?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / rust-cargo

Package

Name
rust-cargo
Purl
pkg:deb/debian/rust-cargo?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.76.0-1

Affected versions

0.*

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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/rust-lang/cargo

Affected ranges

Type
GIT
Repo
https://github.com/rust-lang/cargo
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1.0
0.10.0
0.11.0
0.12.0
0.13.0
0.14.0
0.2.0
0.3.0
0.30.0
0.36.0
0.37.0
0.4.0
0.42.0
0.43.0
0.5.0
0.54.0
0.59.0
0.6.0
0.7.0
0.8.0
0.9.0

home-0.*

home-0.5.4
home-0.5.5

v0.*

v0.0.1-pre