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

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2024-11-05T12:00:00.000Z
- Modified: 2026-10-12T18:00:13.004Z
- Also known as: GHSA-hxf5-99xg-86hw, RUSTSEC-2024-0445
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- bytecodealliance cap-std: < 3.4.1
- cap-std (crates.io): before 3.4.1
- cap-async-std (crates.io): before 3.4.1
- cap-primitives (crates.io): before 3.4.1; from 0.0.0-0 before 3.4.1

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `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`
- GitHub: CVSS:4.0 Low `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`
- RustSec Advisory Database: CVSS:4.0 `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`

## References

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

## Sources

- CVE List: [CVE-2024-51756](https://www.cve.org/CVERecord?id=CVE-2024-51756), CVE Terms of Use, modified 2024-11-06
- GitHub Advisory Database: [GHSA-hxf5-99xg-86hw](https://github.com/advisories/GHSA-hxf5-99xg-86hw), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2024-0445](https://rustsec.org/advisories/RUSTSEC-2024-0445.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2024-51756](https://nvd.nist.gov/vuln/detail/CVE-2024-51756), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-51756 · Whole record: https://cve.day/CVE-2024-51756.json · Rebuilt by cve.day 2026-11-25T22:58:47.804Z
