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 ontprox

Dependencies

(23 total, 4 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 axum^0.70.8.1out of date
 axum-extra^0.90.10.0out of date
 clap^4.54.5.29up to date
 cli_utils_hoijui^0.90.9.2up to date
 const_format^0.20.2.34up to date
 dirs^5.06.0.0out of date
 futures^0.30.3.31up to date
 git-version^0.30.3.9up to date
 mediatype^0.190.19.18up to date
 once_cell^1.191.20.3up to date
 openssl ⚠️=0.10.640.10.71out of date
 rdfoothills-base^0.50.5.1up to date
 rdfoothills-conversion^0.50.5.1up to date
 rdfoothills-mime^0.50.5.1up to date
 reqwest^0.120.12.12up to date
 serde^1.01.0.217up to date
 thiserror^2.02.0.11up to date
 tokio^1.381.43.0up to date
 tokio-util^0.70.7.13up to date
 tower-http^0.60.6.2up to date
 tracing^0.10.1.41up to date
 tracing-subscriber^0.30.3.19up to date
 url^2.52.5.4up to date

Security Vulnerabilities

openssl: `MemBio::get_buf` has undefined behavior with empty buffers

RUSTSEC-2024-0357

Previously, MemBio::get_buf called slice::from_raw_parts with a null-pointer, which violates the functions invariants, leading to undefined behavior. In debug builds this would produce an assertion failure. This is now fixed.

openssl: ssl::select_next_proto use after free

RUSTSEC-2025-0004

In openssl versions before 0.10.70, ssl::select_next_proto can return a slice pointing into the server argument's buffer but with a lifetime bound to the client argument. In situations where the server buffer's lifetime is shorter than the client buffer's, this can cause a use after free. This could cause the server to crash or to return arbitrary memory contents to the client.

openssl 0.10.70 fixes the signature of ssl::select_next_proto to properly constrain the output buffer's lifetime to that of both input buffers.

In standard usage of ssl::select_next_proto in the callback passed to SslContextBuilder::set_alpn_select_callback, code is only affected if the server buffer is constructed within the callback. For example:

Not vulnerable - the server buffer has a 'static lifetime:

builder.set_alpn_select_callback(|_, client_protos| {
    ssl::select_next_proto(b"\x02h2", client_protos).ok_or_else(AlpnError::NOACK)
});

Not vulnerable - the server buffer outlives the handshake:

let server_protos = b"\x02h2".to_vec();
builder.set_alpn_select_callback(|_, client_protos| {
    ssl::select_next_proto(&server_protos, client_protos).ok_or_else(AlpnError::NOACK)
});

Vulnerable - the server buffer is freed when the callback returns:

builder.set_alpn_select_callback(|_, client_protos| {
    let server_protos = b"\x02h2".to_vec();
    ssl::select_next_proto(&server_protos, client_protos).ok_or_else(AlpnError::NOACK)
});