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-postgres

Dependencies

(39 total, 4 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 atoi^2.02.0.0up to date
 base64^0.22.00.22.1up to date
 bigdecimal^0.4.00.4.8up to date
 bit-vec^0.6.30.8.0out of date
 bitflags^22.9.0up to date
 byteorder^1.4.31.5.0up to date
 chrono^0.4.340.4.40up to date
 crc^3.0.03.2.1up to date
 dotenvy^0.15.70.15.7up to date
 etcetera^0.8.00.10.0out of date
 futures-channel^0.3.190.3.31up to date
 futures-core^0.3.190.3.31up to date
 futures-util^0.3.190.3.31up to date
 hex^0.4.30.4.3up to date
 hkdf^0.12.00.12.4up to date
 hmac^0.12.00.12.1up to date
 home^0.5.50.5.11up to date
 ipnet^2.3.02.11.0up to date
 ipnetwork^0.20.00.21.1out of date
 itoa^1.0.11.0.15up to date
 log^0.4.180.4.27up to date
 mac_address^1.1.51.1.8up to date
 md-5^0.10.00.10.6up to date
 memchr^2.4.12.7.4up to date
 num-bigint^0.4.30.4.6up to date
 once_cell^1.9.01.21.3up to date
 rand^0.8.40.9.1out of date
 rust_decimal^1.26.11.37.1up to date
 serde^1.0.1441.0.219up to date
 serde_json^1.0.851.0.140up to date
 sha2^0.10.00.10.8up to date
 smallvec^1.7.01.15.0up to date
 sqlx-core=0.8.50.8.5up to date
 stringprep^0.1.20.1.5up to date
 thiserror^2.0.02.0.12up to date
 time^0.3.360.3.41up to date
 tracing^0.1.370.1.41up to date
 uuid^1.1.21.16.0up to date
 whoami ⚠️^1.2.11.6.0maybe insecure

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 sqlx=0.8.50.8.5up to date

Security Vulnerabilities

whoami: Stack buffer overflow with whoami on several Unix platforms

RUSTSEC-2024-0020

With versions of the whoami crate >= 0.5.3 and < 1.5.0, calling any of these functions leads to an immediate stack buffer overflow on illumos and Solaris:

  • whoami::username
  • whoami::realname
  • whoami::username_os
  • whoami::realname_os

With versions of the whoami crate >= 0.5.3 and < 1.0.1, calling any of the above functions also leads to a stack buffer overflow on these platforms:

  • Bitrig
  • DragonFlyBSD
  • FreeBSD
  • NetBSD
  • OpenBSD

This occurs because of an incorrect definition of the passwd struct on those platforms.

As a result of this issue, denial of service and data corruption have both been observed in the wild. The issue is possibly exploitable as well.

This vulnerability also affects other Unix platforms that aren't Linux or macOS.

This issue has been addressed in whoami 1.5.0.

For more information, see this GitHub issue.