synced 12 MIN AGO
01 Record

CVE-2023-38497

Cargo not respecting umask when extracting crate archives

HighPUBLISHEDCNA: GitHub_M
CNA base score7.8 CVSS v3.xCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

02 Description

Cargo not respecting umask when extracting crate archives

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
0.70% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 52.6% of scored records. A rank, not a probability.
NVD base score
7.3 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
Important. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2023-08-04 15:51Z3 YR AGO
Last updated
2025-02-13 17:01Z1 YR AGO
Reserved
2023-07-18
Assigning CNA
GitHub_M
Record state
PUBLISHED
Severity
High (CVSS 7.8)
CNA CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Weaknesses
  • CWE-278Insecure Preserved Inherited PermissionsVariant
  • CWE-732Incorrect Permission Assignment for Critical ResourceClass
  • CWE-276Incorrect Default PermissionsBase
Data version
5.1
Document digest
6efdf0cebda1ae65688e3a862d9f43f3ca5c7fdf2b78f164d6ef9c72b71bb922

05 Affected products

VendorProductVersionsPlatforms
rust-langcargo< 0.72.2, 0 to < 0.72.2—

06 References

07 Fixed in

AlmaLinux 8

  • cargo
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • clippy
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-analysis
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-analyzer
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-debugger-common
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-doc
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-gdb
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-lldb
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-src
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-std-static
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-std-static-wasm32-unknown-unknown
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-std-static-wasm32-wasi
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-toolset
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rustfmt
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

AlmaLinux 9

  • cargo
    Fixed in 1.66.1-2.el9_2
  • clippy
    Fixed in 1.66.1-2.el9_2
  • rust
    Fixed in 1.66.1-2.el9_2
  • rust-analysis
    Fixed in 1.66.1-2.el9_2
  • rust-analyzer
    Fixed in 1.66.1-2.el9_2
  • rust-debugger-common
    Fixed in 1.66.1-2.el9_2
  • rust-doc
    Fixed in 1.66.1-2.el9_2
  • rust-gdb
    Fixed in 1.66.1-2.el9_2
  • rust-lldb
    Fixed in 1.66.1-2.el9_2
  • rust-src
    Fixed in 1.66.1-2.el9_2
  • rust-std-static
    Fixed in 1.66.1-2.el9_2
  • rust-std-static-wasm32-unknown-unknown
    Fixed in 1.66.1-2.el9_2
  • rust-std-static-wasm32-wasi
    Fixed in 1.66.1-2.el9_2
  • rust-toolset
    Fixed in 1.66.1-2.el9_2
  • rustfmt
    Fixed in 1.66.1-2.el9_2

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 8

  • cargo
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • clippy
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-analysis
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-analyzer
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-debugger-common
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-doc
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-gdb
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-lldb
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-src
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-std-static
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-std-static-wasm32-unknown-unknown
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-std-static-wasm32-wasi
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rust-toolset
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc
  • rustfmt
    Fixed in 1.66.1-2.module_el8.8.0+3604+b9bee1fc

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 9

  • cargo
    Fixed in 1.66.1-2.el9_2
  • clippy
    Fixed in 1.66.1-2.el9_2
  • rust
    Fixed in 1.66.1-2.el9_2
  • rust-analysis
    Fixed in 1.66.1-2.el9_2
  • rust-analyzer
    Fixed in 1.66.1-2.el9_2
  • rust-debugger-common
    Fixed in 1.66.1-2.el9_2
  • rust-doc
    Fixed in 1.66.1-2.el9_2
  • rust-gdb
    Fixed in 1.66.1-2.el9_2
  • rust-lldb
    Fixed in 1.66.1-2.el9_2
  • rust-src
    Fixed in 1.66.1-2.el9_2
  • rust-std-static
    Fixed in 1.66.1-2.el9_2
  • rust-std-static-wasm32-unknown-unknown
    Fixed in 1.66.1-2.el9_2
  • rust-std-static-wasm32-wasi
    Fixed in 1.66.1-2.el9_2
  • rust-toolset
    Fixed in 1.66.1-2.el9_2
  • rustfmt
    Fixed in 1.66.1-2.el9_2

Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 12

  • cargo
    No fix yet
  • rust-cargo
    No fix yet

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • rust-cargo
    Fixed in 0.76.0-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • rust-cargo
    Fixed in 0.76.0-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 24.04 LTS

  • rust-cargo
    No fix yet
  • rustc
    Fixed in 1.71.1+dfsg0ubuntu2-0ubuntu1

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • cargo
    Fixed in 0.47.0-1~exp1ubuntu1~16.04.1+esm1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 18.04 LTS

  • cargo
    Fixed in 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 20.04 LTS

  • cargo
    Fixed in 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2+esm1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 22.04 LTS

  • cargo
    Fixed in 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1
    Available with Ubuntu Pro: https://ubuntu.com/pro
  • rust-cargo
    Fixed in 0.57.0-1ubuntu0.1~esm1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.