patchminder
No public exploit found CVE-2022-36113

Remote code executionin rust-lang cargo.

Published 14 Sep 2022 · Updated 23 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Medium 4.6
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.3% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 0.65.0, 0.67.0
In plain words

Cargo is a package manager for the rust programming language. After a package is downloaded, Cargo extracts its source code in the ~/.cargo folder on disk, making it available to the Rust projects it builds. To record when an extraction is successful, Cargo writes "ok" to the .cargo-ok file at the root of the extracted source code once it extracted all the files. It was discovered that Cargo allowed packages to contain a .cargo-ok symbolic link, which Cargo would extract.

What to do now
  • Upgrade cargo (crates.io) to 0.65.0, 0.67.0 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
cargo
Not confirmed
Not confirmed
CVE record
cargo (crates.io)
before 0.65.0
0.65.0
GitHub advisory
cargo (crates.io)
0.66.0 to before 0.67.0
0.67.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 15 Jul 2022
    CVE ID reserved by GitHub_M.
  2. 14 Sep 2022
    Published in the CVE List.
  3. 23 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other cargo vulnerabilities

Same weakness: Path traversal

All CWE-22 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-36113: Remote code execution in rust-lang cargo. https://patchminder.com/cve/cve-2022-36113/ (accessed 5 December 2026).