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 libsql

Dependencies

(33 total, 12 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.711.0.102up to date
 async-stream^0.3.50.3.6up to date
 async-trait^0.10.1.89up to date
 base64^0.210.22.1out of date
 bincode^13.0.0out of date
 bitflags^2.4.02.11.1up to date
 bytes ⚠️^1.4.01.11.1maybe insecure
 chrono ⚠️^0.40.4.44maybe insecure
 crc32fast^11.5.0up to date
 fallible-iterator^0.30.3.0up to date
 futures^0.3.280.3.32up to date
 http^0.21.4.0out of date
 hyper ⚠️^0.141.9.0out of date
 hyper-rustls^0.250.27.9out of date
 libsql-hrana^0.9.300.9.30up to date
 libsql-sys^0.9.300.9.30up to date
 libsql_replication^0.9.300.9.30up to date
 parking_lot^0.12.10.12.5up to date
 serde^11.0.228up to date
 serde_json^11.0.149up to date
 libsql-sqlite3-parser^0.130.13.0up to date
 thiserror^1.0.402.0.18out of date
 tokio^1.29.11.52.1up to date
 tokio-stream^0.1.140.1.18up to date
 tokio-util^0.70.7.18up to date
 tonic^0.110.14.5out of date
 tonic-web^0.110.14.5out of date
 tower^0.4.130.5.3out of date
 tower-http^0.4.40.6.8out of date
 tracing^0.1.370.1.44up to date
 uuid^1.4.01.23.1up to date
 worker^0.6.70.8.1out of date
 zerocopy^0.7.280.8.48out of date

Dev dependencies

(7 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 criterion^0.50.8.2out of date
 pprof^0.14.00.15.0out of date
 rand^0.8.50.10.1out of date
 tempfile^3.7.03.27.0up to date
 tokio^1.29.11.52.1up to date
 tokio-test^0.40.4.5up to date
 tracing-subscriber ⚠️^0.30.3.23maybe insecure

Security Vulnerabilities

chrono: Potential segfault in `localtime_r` invocations

RUSTSEC-2020-0159

Impact

Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.

Workarounds

No workarounds are known.

References

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.

tracing-subscriber: Logging user input may result in poisoning logs with ANSI escape sequences

RUSTSEC-2025-0055

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

  • Manipulate terminal title bars
  • Clear screens or modify terminal display
  • Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

This was patched in PR #3368 to escape ANSI control characters from user input.

bytes: Integer overflow in `BytesMut::reserve`

RUSTSEC-2026-0007

In the unique reclaim path of BytesMut::reserve, the condition

if v_capacity >= new_cap + offset

uses an unchecked addition. When new_cap + offset overflows usize in release builds, this condition may incorrectly pass, causing self.cap to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as spare_capacity_mut() then trust this corrupted cap value and may create out-of-bounds slices, leading to UB.

This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks.

PoC

use bytes::*;

fn main() {
    let mut a = BytesMut::from(&b"hello world"[..]);
    let mut b = a.split_off(5);

    // Ensure b becomes the unique owner of the backing storage
    drop(a);

    // Trigger overflow in new_cap + offset inside reserve
    b.reserve(usize::MAX - 6);

    // This call relies on the corrupted cap and may cause UB & HBO
    b.put_u8(b'h');
}

Workarounds

Users of BytesMut::reserve are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply.