CVEMETERBack to radar
OFFICIAL RECORD · Rust

CVE-2023-38497

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 7.8 · high

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_M
CVSS: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 Security
CVSS: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

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:56:56.653ZCVE Program
epssverified2026-11-19T18:27:09.715ZFIRST EPSS
patchesverified2026-11-19T16:51:15.805ZUbuntu Security
affectedverified2026-11-19T12:56:56.653ZCVE Program
lifecycleverified2026-11-19T12:56:56.653ZCVE 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&section=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 JSON
CVE 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 JSON

Correction 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 typeDistribution / releasePackageChannelVersion or source noteSource
upstream-releaseupstream / upstreamrustcNot a distribution channel1.71.1Official record
distribution-packageUbuntu / noblerustcsecurity1.71.1+dfsg0ubuntu2-0ubuntu1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history