Lookup for vulnerable packages by Package URL.

Purlpkg:apk/alpine/rust@1.71.1-r0?arch=x86&distroversion=v3.19&reponame=main
Typeapk
Namespacealpine
Namerust
Version1.71.1-r0
Qualifiers
arch x86
distroversion v3.19
reponame main
Subpath
Is_vulnerablefalse
Next_non_vulnerable_versionnull
Latest_non_vulnerable_versionnull
Affected_by_vulnerabilities
Fixing_vulnerabilities
0
url VCID-fa6z-bb5y-jbg8
vulnerability_id VCID-fa6z-bb5y-jbg8
summary
Cargo not respecting umask when extracting crate archives
The Rust Security Response WG was notified that Cargo 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.

This vulnerability has been assigned CVE-2023-38497.

## Overview

In UNIX-like systems, each file has three sets of permissions: for the user owning the file, for the group owning the file, and for all other local users. The "[umask][1]" is configured on most systems to limit those permissions during file creation, removing dangerous ones. For example, the default umask on macOS and most Linux distributions only allow the user owning a file to write to it, preventing the group owning it or other local users from doing the same.

When a dependency is downloaded by Cargo, its source code has to be extracted on disk to allow the Rust compiler to read as part of the build. To improve performance, this extraction only happens the first time a dependency is used, caching the pre-extracted files for future invocations.

Unfortunately, it was discovered that Cargo did not respect the umask during extraction, and propagated the permissions stored in the crate archive as-is. If an archive contained files writeable by any user on the system (and the system configuration didn't prevent writes through other security measures), another local user on the system could replace or tweak the source code of a dependency, potentially achieving code execution the next time the project is compiled.

## Affected Versions

All Rust versions before 1.71.1 on UNIX-like systems (like macOS and Linux) are affected. Note that additional system-dependent security measures configured on the local system might prevent the vulnerability from being exploited.

Users on Windows and other non-UNIX-like systems are not affected.

## Mitigations

We recommend all users to update to Rust 1.71.1, which will be released later today, as it fixes the vulnerability by respecting the umask when extracting crate archives. If you build your own toolchain, patches for 1.71.0 source tarballs are [available here][2].

To prevent existing cached extractions from being exploitable, the Cargo binary included in Rust 1.71.1 or later will purge the caches it tries to access if they were generated by older Cargo versions.

If you cannot update to Rust 1.71.1, we recommend configuring your system to prevent other local users from accessing the Cargo directory, usually located in `~/.cargo`:

```
chmod go= ~/.cargo
```

## Acknowledgments

We want to thank Addison Crump for responsibly disclosing this to us according to the [Rust security policy][3].

We also want to thank the members of the Rust project who helped us disclose the vulnerability: Weihang Lo for developing the fix; Eric Huss for reviewing the fix; Pietro Albini for writing this advisory; Pietro Albini, Manish Goregaokar and Josh Stone for coordinating this disclosure; Josh Triplett, Arlo Siemen, Scott Schafer, and Jacob Finkelman for advising during the disclosure.

[1]: https://en.wikipedia.org/wiki/Umask
[2]: https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497
[3]: https://www.rust-lang.org/policies/security
references
0
reference_url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-38497.json
reference_id
reference_type
scores
0
value 6.7
scoring_system cvssv3
scoring_elements CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-38497.json
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2023-38497
reference_id
reference_type
scores
0
value 0.05657
scoring_system epss
scoring_elements 0.90383
published_at 2026-04-21T12:55:00Z
1
value 0.05657
scoring_system epss
scoring_elements 0.90385
published_at 2026-04-18T12:55:00Z
2
value 0.05657
scoring_system epss
scoring_elements 0.90386
published_at 2026-04-16T12:55:00Z
3
value 0.05657
scoring_system epss
scoring_elements 0.90345
published_at 2026-04-04T12:55:00Z
4
value 0.05657
scoring_system epss
scoring_elements 0.90333
published_at 2026-04-02T12:55:00Z
5
value 0.05657
scoring_system epss
scoring_elements 0.9037
published_at 2026-04-13T12:55:00Z
6
value 0.05657
scoring_system epss
scoring_elements 0.90369
published_at 2026-04-09T12:55:00Z
7
value 0.05657
scoring_system epss
scoring_elements 0.90377
published_at 2026-04-12T12:55:00Z
8
value 0.05657
scoring_system epss
scoring_elements 0.90349
published_at 2026-04-07T12:55:00Z
9
value 0.05657
scoring_system epss
scoring_elements 0.90363
published_at 2026-04-08T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2023-38497
2
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-38497
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-38497
3
reference_url https://en.wikipedia.org/wiki/Umask
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value 7.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2024-10-08T18:02:25Z/
url https://en.wikipedia.org/wiki/Umask
4
reference_url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
reference_id
reference_type
scores
0
value 6.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
5
reference_url https://github.com/rust-lang/cargo
reference_id
reference_type
scores
0
value 7.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/rust-lang/cargo
6
reference_url https://github.com/rust-lang/cargo/commit/d78bbf4bde3c6b95caca7512f537c6f9721426ff
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value 7.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2024-10-08T18:02:25Z/
url https://github.com/rust-lang/cargo/commit/d78bbf4bde3c6b95caca7512f537c6f9721426ff
7
reference_url https://github.com/rust-lang/cargo/pull/12443
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value 7.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2024-10-08T18:02:25Z/
url https://github.com/rust-lang/cargo/pull/12443
8
reference_url https://github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value 7.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
2
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
3
value HIGH
scoring_system generic_textual
scoring_elements
4
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2024-10-08T18:02:25Z/
url https://github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87
9
reference_url https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value 7.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2024-10-08T18:02:25Z/
url https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497
10
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGKE6PGM4HIQUHPJRBQAHMELINSGN4H4
reference_id
reference_type
scores
0
value 7.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGKE6PGM4HIQUHPJRBQAHMELINSGN4H4
11
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGKE6PGM4HIQUHPJRBQAHMELINSGN4H4/
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2024-10-08T18:02:25Z/
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGKE6PGM4HIQUHPJRBQAHMELINSGN4H4/
12
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMEXGUGPW5OBSQA6URTBNDSU3RAEFOZ4
reference_id
reference_type
scores
0
value 7.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMEXGUGPW5OBSQA6URTBNDSU3RAEFOZ4
13
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMEXGUGPW5OBSQA6URTBNDSU3RAEFOZ4/
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2024-10-08T18:02:25Z/
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMEXGUGPW5OBSQA6URTBNDSU3RAEFOZ4/
14
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-38497
reference_id
reference_type
scores
0
value 7.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2023-38497
15
reference_url https://www.rust-lang.org/policies/security
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
1
value 7.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2024-10-08T18:02:25Z/
url https://www.rust-lang.org/policies/security
16
reference_url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043553
reference_id 1043553
reference_type
scores
url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043553
17
reference_url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043554
reference_id 1043554
reference_type
scores
url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043554
18
reference_url https://bugzilla.redhat.com/show_bug.cgi?id=2228038
reference_id 2228038
reference_type
scores
url https://bugzilla.redhat.com/show_bug.cgi?id=2228038
19
reference_url https://github.com/advisories/GHSA-j3xp-wfr4-hx87
reference_id GHSA-j3xp-wfr4-hx87
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-j3xp-wfr4-hx87
20
reference_url https://security.gentoo.org/glsa/202409-07
reference_id GLSA-202409-07
reference_type
scores
url https://security.gentoo.org/glsa/202409-07
21
reference_url https://access.redhat.com/errata/RHSA-2023:4634
reference_id RHSA-2023:4634
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:4634
22
reference_url https://access.redhat.com/errata/RHSA-2023:4635
reference_id RHSA-2023:4635
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:4635
23
reference_url https://access.redhat.com/errata/RHSA-2023:4651
reference_id RHSA-2023:4651
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:4651
24
reference_url https://access.redhat.com/errata/RHSA-2024:3418
reference_id RHSA-2024:3418
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:3418
25
reference_url https://access.redhat.com/errata/RHSA-2024:3428
reference_id RHSA-2024:3428
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:3428
26
reference_url https://usn.ubuntu.com/6275-1/
reference_id USN-6275-1
reference_type
scores
url https://usn.ubuntu.com/6275-1/
fixed_packages
0
url pkg:apk/alpine/rust@1.71.1-r0?arch=x86&distroversion=v3.19&reponame=main
purl pkg:apk/alpine/rust@1.71.1-r0?arch=x86&distroversion=v3.19&reponame=main
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:apk/alpine/rust@1.71.1-r0%3Farch=x86&distroversion=v3.19&reponame=main
aliases CVE-2023-38497, GHSA-j3xp-wfr4-hx87
risk_score 4.0
exploitability 0.5
weighted_severity 8.0
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-fa6z-bb5y-jbg8
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:apk/alpine/rust@1.71.1-r0%3Farch=x86&distroversion=v3.19&reponame=main