# CVE-2024-51756: cap-std doesn't fully sandbox all the Windows device filenames

- Priority: **Routine**
- Reason: Not severe (CVSS 2.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-11-05 · Modified: 2024-11-06
- Aliases: CGA-3h3w-87wg-7pqf, CGA-3qc7-3p98-8627, CGA-49fx-r642-rw69, CGA-4w58-3qm4-w669, CGA-4xfg-8jvm-5w7p, CGA-7p5p-fc4p-rrh4, CGA-869w-6m6w-v89v, CGA-8m7f-3wq2-7f3m, CGA-9487-25m5-h9gx, CGA-9mvw-g6cj-p52c, CGA-j8cr-cc24-x3c2, CGA-m4p5-gj6v-g2m5, CGA-mgqx-j7w3-r85h, CGA-qpp9-rx66-45qv, CGA-vgpw-ww44-h8vg, CGA-w3w5-vvrf-3xgr, CGA-xh6f-h9ff-7f5w, CGA-xwm3-8jqh-cqrc, GHSA-hxf5-99xg-86hw, RUSTSEC-2024-0445
- Record: https://cvemate.com/vulnerability/CVE-2024-51756 · JSON: https://cvemate.com/vulnerability/CVE-2024-51756/json

## Description

```text
The cap-std project is organized around the eponymous `cap-std` crate, and develops libraries to make it easy to write capability-based code. cap-std'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. 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. There are no known workarounds for this issue. Affected Windows users are recommended to upgrade.
```

## Signals

- CVSS: 2.3 low (v4.0, CVE.org) 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
- EPSS: 0.583%, percentile 49.326%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 22)

- chainguard wash (Chainguard): \< 0.36.1-r2
- chainguard wasmcloud (Chainguard): \< 1.4.0-r2
- chainguard wasmtime (Chainguard): \< 26.0.1-r0
- chainguard wizer (Chainguard): \< 7.0.5-r3
- chainguard zed (Chainguard): \< 0.159.10-r1
- chainguard zellij (Chainguard): \< 0.41.2-r1
- chainguard zellij-bash-completion (Chainguard): \< 0.41.2-r1
- chainguard zellij-fish-completion (Chainguard): \< 0.41.2-r1
- chainguard zellij-zsh-completion (Chainguard): \< 0.41.2-r1
- wolfi wash (Wolfi): \< 0.36.1-r2
- wolfi wasmcloud (Wolfi): \< 1.4.0-r2
- wolfi wasmtime (Wolfi): \< 26.0.1-r0
- wolfi wizer (Wolfi): \< 7.0.5-r3
- wolfi zed (Wolfi): \< 0.159.10-r1
- wolfi zellij (Wolfi): \< 0.41.2-r1
- wolfi zellij-bash-completion (Wolfi): \< 0.41.2-r1
- wolfi zellij-fish-completion (Wolfi): \< 0.41.2-r1
- wolfi zellij-zsh-completion (Wolfi): \< 0.41.2-r1
- bytecodealliance cap-std: \< 3.4.1
- Crates.Io cap-async-std (Crates.Io): \< 3.4.1

## References

- <https://github.com/bytecodealliance/cap-std/security/advisories/GHSA-hxf5-99xg-86hw>
- <https://github.com/bytecodealliance/cap-std/pull/371>
- <https://github.com/bytecodealliance/cap-std/commit/dcc3818039761331fbeacbb3a40c542b65b5ebf7>
- <https://en.wikipedia.org/wiki/ISO/IEC_8859-1>
- <https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51756.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-51756>
- <https://github.com/bytecodealliance/cap-std>
- <https://rustsec.org/advisories/RUSTSEC-2024-0445.html>
- <https://crates.io/crates/cap-primitives>

---

Data as of 2026-12-05T09:44:15.634Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
