cargo.exe from Rust 1.97.1 is blocked by Windows 11 Smart App Control, while 1.96.0 works
Open
Nobody has claimed this yet.
C-bug
needs-triage
O-windows
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Summary
After upgrading from Rust 1.96.0 to 1.97.1 on Windows 11, cargo.exe is blocked by Windows Smart App Control.
Downgrading back to Rust 1.96.0 immediately fixes the problem.
Environment
- Windows 11
- Smart App Control: On
- rustup: 1.29.0
- Rust 1.97.1
- x86_64-pc-windows-msvc
Reproduction
Install Rust 1.97.1:
rustup update
cargo --version
Result:
error: command failed: 'cargo': Application Control policy has blocked this file. (os error 4551)
Downgrade:
rustup toolchain install 1.96.0
rustup default 1.96.0
cargo --version
Result:
cargo 1.96.0 (...)
Additional information
rustup.exe works.
rustc.exe works.
Only cargo.exe is blocked.
Windows Code Integrity Event Log:
Code Integrity determined that a process
(\Users\...\cargo.exe)
attempted to load
(\Users\...\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe)
that did not meet the Enterprise signing level requirements
or violated code integrity policy.
Smart App Control state:
On
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported cargo.exe entry point and reproduce cargo --version on Windows 11 with Smart App Control enabled, comparing Rust 1.97.1 against 1.96.0. Review the Windows Code Integrity Event Log and the rustup-installed toolchain artifacts; done means cargo.exe from 1.97.1 runs successfully under the reported policy without regressing rustup.exe or rustc.exe.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems, security, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100