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 sqlx-core

Dependencies

(47 total, 4 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 async-fs^2.12.2.0up to date
 async-global-executor^3.13.1.0up to date
 async-io^2.4.12.6.0up to date
 async-std^1.131.13.2up to date
 async-task^4.7.14.7.1up to date
 base64^0.22.10.22.1up to date
 bigdecimal^0.4.00.4.10up to date
 bit-vec^0.80.9.1out of date
 bstr^1.0.11.12.1up to date
 bytes ⚠️^1.2.01.11.1maybe insecure
 cfg-if^1.0.01.0.4up to date
 chrono^0.4.340.4.44up to date
 crc^33.4.0up to date
 crossbeam-queue^0.3.20.3.12up to date
 either^1.6.11.16.0up to date
 event-listener^5.2.05.4.1up to date
 futures-core^0.3.320.3.32up to date
 futures-intrusive^0.5.00.5.0up to date
 futures-io^0.3.320.3.32up to date
 futures-util^0.3.320.3.32up to date
 hashbrown^0.16.00.17.1out of date
 hashlink^0.11.00.11.0up to date
 indexmap^2.02.14.0up to date
 ipnet^2.3.02.12.0up to date
 ipnetwork^0.21.10.21.1up to date
 log^0.4.180.4.30up to date
 mac_address^1.1.51.1.8up to date
 memchr^2.5.02.8.1up to date
 native-tls^0.2.100.2.18up to date
 percent-encoding^2.3.02.3.2up to date
 rust_decimal^1.36.01.42.0up to date
 rustls^0.23.240.23.40up to date
 rustls-native-certs^0.8.00.8.3up to date
 serde^1.0.2191.0.228up to date
 serde_json^1.0.1421.0.150up to date
 sha2^0.10.00.11.0out of date
 smallvec^1.13.11.15.1up to date
 smol^2.02.0.2up to date
 thiserror^2.0.182.0.18up to date
 time^0.3.470.3.47up to date
 tokio^1.25.01.52.3up to date
 tokio-stream^0.1.80.1.18up to date
 toml^0.8.161.1.2+spec-1.1.0out of date
 tracing^0.1.370.1.44up to date
 url^2.2.22.5.8up to date
 uuid^1.12.11.23.1up to date
 webpki-roots^11.0.7up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 tokio^1.25.01.52.3up to date

Security Vulnerabilities

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.