# Cargo extracting malicious crates can fill the file system

Advisory record · `GHSA-2hvr-h6gw-qrxp`

- **Identifiers:** `GHSA-2hvr-h6gw-qrxp` · `CVE-2022-36114`
- **State:** Confirmed
- **Severity:** CVSS 4.8 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-400](https://cwe.mitre.org/data/definitions/400.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 16 Sept 2022
- **Updated:** 8 Nov 2023
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 16 Sept 2022, 17:12 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `cargo` (crates.io): affected `<0.65.0 || >=0.66.0, <0.67.0`; fixed in `0.65.0`, `0.67.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Cargo versions below 0.65.0 and from 0.66.0 up to (not including) 0.67.0 are affected. An attacker who can upload packages to an alternate registry can craft a compressed package that extracts far more data than its size, filling the disk when Cargo downloads it. Upgrade to Cargo 0.65.0 or 0.67.0 or later; crates.io users are not affected.

Written 9 Nov 2026.

## 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

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

- **CISA KEV:** Not listed.
- **EPSS:** 0.010, the 63rd percentile, on 19 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-2hvr-h6gw-qrxp)

## Sources

- [GitHub Advisory Database: GHSA-2hvr-h6gw-qrxp](https://github.com/advisories/GHSA-2hvr-h6gw-qrxp)
- [OSV: GHSA-2hvr-h6gw-qrxp](https://osv.dev/vulnerability/GHSA-2hvr-h6gw-qrxp)
- <https://github.com/rust-lang/cargo/security/advisories/GHSA-2hvr-h6gw-qrxp>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36114>
- <https://github.com/rust-lang/cargo/commit/2b68d3c07a4a056264dc006ecb9f1354a0679cd3>
- <https://github.com/rust-lang/cargo/commit/d1f9553c825f6d7481453be8d58d0e7f117988a7>
- <https://github.com/rust-lang/cargo/commit/d87d57dbbda61754f4fab0f329a7ac520e062c46>
- <https://github.com/rust-lang/cargo>
- <https://security.gentoo.org/glsa/202210-09>

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-2hvr-h6gw-qrxp>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-2hvr-h6gw-qrxp/>. Everything for agents: <https://agentprime.io/llms.txt>.
