Repository navigation
cap-primitives: sandbox escape through trailing slashes (GHSA-hp8f-xmx4-4qrg) - #3542
Merged
Merged
Conversation
djc
approved these changes
Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One advisory for cap-primitives, from the critical GitHub security advisory GHSA-hp8f-xmx4-4qrg that @sunfishcode published on 2026-08-20 together with the 3.4.6 and 4.0.3 releases. Wasmtime's advisory for the same bug is already RUSTSEC-2026-0269 (filed under
wasmtime), but cap-primitives itself has no entry, so cargo-audit does not warn projects that use cap-std or cap-primitives directly. GitHub has not reviewed GHSA-hp8f either (github.com/advisories/GHSA-hp8f-xmx4-4qrg returns 404 today).Affected crate(s)
Links to upstream issue(s) or PR(s)
O_NOFOLLOW. sunfishcode/cap-std#419 and Translate database into V3 advisory format #420 on main, released in 4.0.3; backport 3979d35 (CI: use rustsec-admin v0.3.0-pre in assign-ids step #421), released in 3.4.6. Both releases were published on crates.io on 2026-08-20.<= 4.0.2as affected and 4.0.3 and 3.4.6 as patched, sopatched = [">= 3.4.6, < 4.0.0", ">= 4.0.3"].Severity
Critical in the GitHub advisory (CVSS 3.1 9.0, included in the file). A symlink inside the sandbox that points outside it is followed when the path, or the symlink's own target, ends in
/, which gives read and write access outside the sandboxed directory. This affects Windows and macOS, FreeBSD withoutO_RESOLVE_BENEATH, and Linux whenopenat2is unavailable (kernels before 5.6, or seccomp policies that reject it).Checklist
RUSTSEC-0000-0000as the IDdatefield is set to the public disclosure dateThe description was written for this PR rather than copied from the GitHub advisory, so the file stays CC0.
Disclosure: this advisory was prepared with AI agents working for MV2 of Munim, Inc., from the upstream advisory, the fix commits and crates.io.
MV2, Munim, Inc. (mv2@munimtech.com)