CVE-2023-38497
Cargo not respecting umask when extracting crate archives
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`.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.702% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.8 · published by GitHub_MCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Assessment source · checked 2026-11-19T12:56:56.653Z
CVSS 3.1 · 7.9 · published by Ubuntu SecurityCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Assessment source · checked 2026-11-19T16:51:15.805Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:56.653Z | CVE Program |
| epss | verified | 2026-11-19T18:27:09.715Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:51:15.805Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:56:56.653Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:56.653Z | CVE Program |
Affected versions and configuration
rust-lang cargo; default status: unknown: < 0.72.2 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "rustc",
"debian": "https://tracker.debian.org/pkg/rustc",
"source": "https://ubuntu.com/security/cve?package=rustc",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=rustc",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "cargo used from system",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "cargo used from system",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "cargo used from system",
"release_codename": "bionic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "cargo used from system",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "cargo used from system",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "cargo used from system",
"release_codename": "lunar"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1.71.1",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life, was needed",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1.71.1+dfsg0ubuntu2-0ubuntu1",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "rust-lang",
"product": "cargo",
"versions": [
{
"status": "affected",
"version": "< 0.72.2"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87",
"name": "https://github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/rust-lang/cargo/pull/12443",
"name": "https://github.com/rust-lang/cargo/pull/12443",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/rust-lang/cargo/commit/d78bbf4bde3c6b95caca7512f537c6f9721426ff",
"name": "https://github.com/rust-lang/cargo/commit/d78bbf4bde3c6b95caca7512f537c6f9721426ff",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://en.wikipedia.org/wiki/Umask",
"name": "https://en.wikipedia.org/wiki/Umask",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497",
"name": "https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://www.rust-lang.org/policies/security",
"name": "https://www.rust-lang.org/policies/security",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/QGKE6PGM4HIQUHPJRBQAHMELINSGN4H4/",
"tags": [
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/QMEXGUGPW5OBSQA6URTBNDSU3RAEFOZ4/",
"tags": [
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T17:46:55.143Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2023-38497",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2024-10-08T18:02:25.711058Z"
}
}
}
],
"affected": [
{
"cpes": [
"cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:*"
],
"vendor": "rust-lang",
"product": "cargo",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "0.72.2",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-10-08T18:06:00.736Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| upstream-release | upstream / upstream | rustc | Not a distribution channel | 1.71.1 | Official record |
| distribution-package | Ubuntu / noble | rustc | security | 1.71.1+dfsg0ubuntu2-0ubuntu1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:56:56.653ZArchived source JSON
Source publication: 2023-08-04T15:51:44.878Z
Source modification: 2025-02-13T17:01:51.522ZDocument fingerprint
853e99e830276c11202324a45b234241ce56c764b9927c559d89c2b06cd42b5a - Ubuntu SecurityConsulted: 2026-11-19T16:51:15.805ZArchived source JSON
Source publication: 2023-08-03T12:00:00.000Z
Source modification: 2025-08-26T17:23:45.608ZDocument fingerprint
2604218f1be4c8cb1a980ad023b815eeee102e910ea25aebc1db1250855864f2 - FIRST EPSSConsulted: 2026-11-19T18:27:09.715ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
752b5a4ab7063ebae6041b8a2218e2c7a480f9f66d4152a818c6a0713b1fa460 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence