PT-2026-140120

Publicado

2026-10-29

·

Atualizado

2026-10-29

Descrição por

CVSS 3.1
8.8
Alta
MétricasAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
SafeReleaseRepoActions::extract release archive builds each output path from the raw archive entry name and writes to it with no traversal check, so a malicious release archive can create directories and write files outside the destination directory, a "zip-slip" / path traversal (CWE-22 / CWE-23).
In src/lib.rs (extract release archive, zip branch):
rust
let mut file = archive.by index(i)?;
let out path = dest dir path.join(file.name());  // file.name() is the raw entry name
if file.name().ends with('/') {
  std::fs::create dir all(&out path)?;     // no `..` check
} else {
  let mut outfile = std::fs::File::create(&out path)?;  // writes outside dest
  std::io::copy(&mut file, &mut outfile)?;
}
The crate is unmaintained (latest release 0.3.1, 2024-10-22) and no fixed version is available.
Explorabilidade
Correção
Fornecedores
Produtos afetados
Identificadores relacionados
RUSTSEC-2026-0427
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾