{"record":{"id":"d199f57a53421afb","repo":"jdx/mise","slug":"content-level-slsa-verification-rejected-unsafe-ar","errorCode":null,"errorMessage":"content-level SLSA verification rejected unsafe archive path: {}","messagePattern":"content-level SLSA verification rejected unsafe archive path: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"critical","filePath":"src/file.rs","lineNumber":2769,"sourceCode":"            bail!(\n                \"content-level SLSA verification found duplicate installed archive path: {}\",\n                file.name\n            );\n        }\n    }\n    Ok(files)\n}\n\nfn normalize_archive_content_path(path: &Path, strip_components: usize) -> Result<String> {\n    let mut parts = Vec::new();\n    for component in skip_curdir_components(path) {\n        match component {\n            std::path::Component::Normal(part) => parts.push(part.to_string_lossy().to_string()),\n            std::path::Component::CurDir => {}\n            std::path::Component::ParentDir\n            | std::path::Component::RootDir\n            | std::path::Component::Prefix(_) => {\n                bail!(\n                    \"content-level SLSA verification rejected unsafe archive path: {}\",\n                    path.display()\n                )\n            }\n        }\n    }\n    if strip_components > parts.len() {\n        bail!(\n            \"content-level SLSA verification stripped all components from archive path: {}\",\n            path.display()\n        );\n    }\n    let parts = &parts[strip_components..];\n    if parts.is_empty() {\n        bail!(\n            \"content-level SLSA verification stripped all components from archive path: {}\",\n            path.display()\n        );","sourceCodeStart":2751,"sourceCodeEnd":2787,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/file.rs#L2751-L2787","documentation":"While normalizing archive entry paths for content-level SLSA verification, mise splits each path into components and rejects any entry containing `..`, an absolute/root component, or a Windows prefix. This prevents an archive from writing outside its install directory (zip-slip / tar-slip attack) during verification or extraction.","triggerScenarios":"Content-level SLSA verification encounters an archive entry whose path contains a parent-directory component (`../`), starts with `/`, or carries a drive/UNC prefix.","commonSituations":"A malicious or tampered release artifact attempting path traversal; archives built with absolute paths; corrupted archives; running mise on a platform where a prefix component appears in archive paths.","solutions":["Do not use the artifact; treat it as untrusted — verify its provenance/checksum independently","Download a fresh official release from upstream in case the local copy was tampered with or corrupted","Report the malicious/tainted archive to the upstream project if it ships traversal paths","Ensure you are fetching from the URL pinned in the signed manifest rather than a mirror"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"tar -tf tool.tar.gz | grep -E '(^/|(^|/)\\.\\./)' && echo UNSAFE || echo OK","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Never install archives from unverified mirrors; rely on SLSA/checksummed sources","Treat any path-traversal error as a security signal, not a config bug","Report upstream archives that ship absolute or `..` paths"],"tags":["security","path-traversal","archive","slsa"],"backgroundTag":"path-traversal-blocked","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}