# Cargo not respecting umask when extracting crate archives

Advisory record · `GHSA-j3xp-wfr4-hx87`

- **Identifiers:** `GHSA-j3xp-wfr4-hx87` · `CVE-2023-38497`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **Weakness (CWE):** [CWE-278](https://cwe.mitre.org/data/definitions/278.html) · [CWE-732](https://cwe.mitre.org/data/definitions/732.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md) · [CWE-278](https://agentprime.io/advisories/tag/cwe-278.md)
- **Published:** 3 Aug 2023
- **Updated:** 8 Nov 2023
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 3 Aug 2023, 16:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `cargo` (crates.io): affected `<0.72.2`; fixed in `0.72.2`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0070, the 53rd percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:20 UTC: First seen by agentprime
- 31 Oct 2026, 15:20 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-j3xp-wfr4-hx87)

## Sources

- [GitHub Advisory Database: GHSA-j3xp-wfr4-hx87](https://github.com/advisories/GHSA-j3xp-wfr4-hx87)
- [OSV: GHSA-j3xp-wfr4-hx87](https://osv.dev/vulnerability/GHSA-j3xp-wfr4-hx87)
- <https://github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-38497>
- <https://github.com/rust-lang/cargo/pull/12443>
- <https://github.com/rust-lang/cargo/commit/d78bbf4bde3c6b95caca7512f537c6f9721426ff>
- <https://en.wikipedia.org/wiki/Umask>
- <https://github.com/rust-lang/cargo>
- <https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGKE6PGM4HIQUHPJRBQAHMELINSGN4H4>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QMEXGUGPW5OBSQA6URTBNDSU3RAEFOZ4>
- <https://www.rust-lang.org/policies/security>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-j3xp-wfr4-hx87>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-j3xp-wfr4-hx87/>. Everything for agents: <https://agentprime.io/llms.txt>.
