Email me

Rust advisories / cap-primitives

Vulnerability LowRUSTSEC-2024-0445 · cap-primitives

RUSTSEC-2024-0445: cap-primitives doesn't fully sandbox all the Windows device filenames

Short answerA security vulnerability in the cap-primitives crate: cap-primitives doesn't fully sandbox all the Windows device filenames. GitHub rates it Low. Fixed in 3.4.1: update to a fixed version.

Cratecap-primitives
TypeVulnerability
Affected versionsBefore 3.4.1.
Fixed in3.4.1
SeverityLow (GitHub rating)
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Published2024-11-05
Last changed2026-10-12
Also known asCVE-2024-51756, GHSA-hxf5-99xg-86hw

What to do

  1. See which version you have: cargo tree -i cap-primitives (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p cap-primitives. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example cap-primitives = "3.4.1") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

Impact

cap-primitives's filesystem sandbox implementation on Windows blocks access to special device filenames such as "COM1", "COM2", "LPT0", "LPT1", and so on, however it did not block access to the special device filenames which use superscript digits, such as "COM¹", "COM²", "LPT⁰", "LPT¹", and so on. Untrusted filesystem paths could bypass the sandbox and access devices through those special device filenames with superscript digits, and through them provide access peripheral devices connected to the computer, or network resources mapped to those devices. This can include modems, printers, network printers, and any other device connected to a serial or parallel port, including emulated USB serial ports.

Patches

The bug is fixed in #371, which is published in cap-primitives 3.4.1, cap-std 3.4.1, and cap-async-std 3.4.1.

Workarounds

There are no known workarounds for this issue. Affected Windows users are recommended to upgrade.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ