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 body-image

Dependencies

(7 total, 4 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 bytes>=1.0.0, <1.21.6.0out of date
 http>=0.2.2, <0.31.1.0out of date
 tao-log>=1.0.0, <1.11.0.1up to date
 memmap>=0.7.0, <0.80.7.0up to date
 olio>=1.4.0, <1.51.4.0up to date
 tempfile>=3.1.0, <3.33.10.1out of date
 remove_dir_all ⚠️>=0.5.0, <0.5.30.8.2out of date

Crate barc

Dependencies

(11 total, 4 outdated)

CrateRequiredLatestStatus
 body-image>=2.2.0, <2.32.2.3up to date
 brotli>=3.1.0, <3.45.0.0out of date
 brotli-decompressor>=2.1.24.0.0up to date
 bytes>=1.0.0, <1.21.6.0out of date
 flate2>=1.0.4, <1.11.0.28up to date
 http>=0.2.2, <0.31.1.0out of date
 httparse>=1.2.4, <1.51.8.0out of date
 tao-log>=1.0.0, <1.11.0.1up to date
 memmap>=0.7.0, <0.80.7.0up to date
 mime>=0.3.13, <0.40.3.17up to date
 olio>=1.4.0, <1.51.4.0up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 piccolog>=1.0.0, <1.11.0.3up to date

Crate body-image-futio

Dependencies

(19 total, 9 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 body-image>=2.2.0, <2.32.2.3up to date
 brotli>=3.1.0, <3.45.0.0out of date
 brotli-decompressor>=2.1.24.0.0up to date
 bytes>=1.0.0, <1.21.6.0out of date
 flate2>=1.0.4, <1.11.0.28up to date
 futures-core>=0.3.1, <0.40.3.30up to date
 futures-sink>=0.3.1, <0.40.3.30up to date
 futures-util>=0.3.1, <0.40.3.30up to date
 http>=0.2.2, <0.31.1.0out of date
 http-body>=0.4.0, <0.51.0.0out of date
 httparse>=1.2.4, <1.51.8.0out of date
 hyper ⚠️>=0.14.2, <0.151.3.1out of date
 hyper-tls>=0.5.0, <0.60.6.0out of date
 hyperx>=1.3.0, <1.41.4.0out of date
 tao-log>=1.0.0, <1.11.0.1up to date
 memmap>=0.7.0, <0.80.7.0up to date
 olio>=1.4.0, <1.51.4.0up to date
 tokio ⚠️>=1.0.1, <1.131.37.0out of date
 blocking-permit>=1.3.0, <1.41.3.3up to date

Dev dependencies

(4 total, 1 possibly insecure)

CrateRequiredLatestStatus
 lazy_static>=1.3.0, <1.51.4.0up to date
 piccolog>=1.0.0, <1.11.0.3up to date
 rand>=0.8.0, <0.90.8.5up to date
 tokio ⚠️>=1.0.11.37.0maybe insecure

Crate barc-cli

Dependencies

(8 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 barc>=2.2.0, <2.32.2.2up to date
 body-image>=2.2.2, <2.32.2.3up to date
 body-image-futio>=2.2.0, <2.32.2.2up to date
 clap>=2.31.2, <2.344.5.4out of date
 http>=0.2.2, <0.31.1.0out of date
 hyper ⚠️>=0.14.2, <0.151.3.1out of date
 tao-log>=1.0.0, <1.11.0.1up to date
 piccolog>=1.0.0, <1.11.0.3up to date

Crate piccolog

Dependencies

(1 total, 1 outdated)

CrateRequiredLatestStatus
 log>=0.4.4, <0.4.150.4.21out of date

Security Vulnerabilities

hyper: Lenient `hyper` header parsing of `Content-Length` could allow request smuggling

RUSTSEC-2021-0078

hyper's HTTP header parser accepted, according to RFC 7230, illegal contents inside Content-Length headers. Due to this, upstream HTTP proxies that ignore the header may still forward them along if it chooses to ignore the error.

To be vulnerable, hyper must be used as an HTTP/1 server and using an HTTP proxy upstream that ignores the header's contents but still forwards it. Due to all the factors that must line up, an attack exploiting this vulnerability is unlikely.

hyper: Integer overflow in `hyper`'s parsing of the `Transfer-Encoding` header leads to data loss

RUSTSEC-2021-0079

When decoding chunk sizes that are too large, hyper's code would encounter an integer overflow. Depending on the situation, this could lead to data loss from an incorrect total size, or in rarer cases, a request smuggling attack.

To be vulnerable, you must be using hyper for any HTTP/1 purpose, including as a client or server, and consumers must send requests or responses that specify a chunk size greater than 18 exabytes. For a possible request smuggling attack to be possible, any upstream proxies must accept a chunk size greater than 64 bits.

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);

remove_dir_all: Race Condition Enabling Link Following and Time-of-check Time-of-use (TOCTOU)

RUSTSEC-2023-0018

The remove_dir_all crate is a Rust library that offers additional features over the Rust standard library fs::remove_dir_all function.

It was possible to trick a privileged process doing a recursive delete in an attacker controlled directory into deleting privileged files, on all operating systems.

For instance, consider deleting a tree called 'etc' in a parent directory called 'p'. Between calling remove_dir_all("a") and remove_dir_all("a") actually starting its work, the attacker can move 'p' to 'p-prime', and replace 'p' with a symlink to '/'. Then the privileged process deletes 'p/etc' which is actually /etc, and now your system is broken. There are some mitigations for this exact scenario, such as CWD relative file lookup, but they are not guaranteed - any code using absolute paths will not have that protection in place.

The same attack could be performed at any point in the directory tree being deleted: if 'a' contains a child directory called 'etc', attacking the deletion by replacing 'a' with a link is possible.

The new code in this release mitigates the attack within the directory tree being deleted by using file-handle relative operations: to open 'a/etc', the path 'etc' relative to 'a' is opened, where 'a' is represented by a file descriptor (Unix) or handle (Windows). With the exception of the entry points into the directory deletion logic, this is robust against manipulation of the directory hierarchy, and remove_dir_all will only delete files and directories contained in the tree it is deleting.

The entry path however is a challenge - as described above, there are some potential mitigations, but since using them must be done by the calling code, it is hard to be confident about the security properties of the path based interface.

The new extension trait RemoveDir provides an interface where it is much harder to get it wrong.

somedir.remove_dir_contents("name-of-child").

Callers can then make their own security evaluation about how to securely get a directory handle. That is still not particularly obvious, and we're going to follow up with a helper of some sort (probably in the fs_at crate). Once that is available, the path based entry points will get deprecated.

In the interim, processes that might run with elevated privileges should figure out how to securely identify the directory they are going to delete, to avoid the initial race. Pragmatically, other processes should be fine with the path based entry points : this is the same interface std::fs::remove_dir_all offers, and an unprivileged process running in an attacker controlled directory can't do anything that the attacker can't already do.