Open renovate[bot] opened 2 months ago
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
ā» Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path services/radio-manager-backend/Cargo.toml --package sqlx@0.7.4 --precise 0.8.1
error: package ID specification `sqlx@0.7.4` did not match any packages
Did you mean one of these?
sqlx@0.8.2
This PR contains the following updates:
0.7.1
->0.8.0
GitHub Vulnerability Alerts
GHSA-xmrp-424f-vfpx
The following presentation at this year's DEF CON was brought to our attention on the SQLx Discord:
Essentially, encoding a value larger than 4GiB can cause the length prefix in the protocol to overflow, causing the server to interpret the rest of the string as binary protocol commands or other data.
It appears SQLx does perform truncating casts in a way that could be problematic, for example: https://github.com/launchbadge/sqlx/blob/6f2905695b9606b5f51b40ce10af63ac9e696bb8/sqlx-postgres/src/arguments.rs#L163
This code has existed essentially since the beginning, so it is reasonable to assume that all published versions
<= 0.8.0
are affected.Mitigation
As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound.
Encode::size_hint()
can be used for sanity checks, but do not assume that the size returned is accurate. For example, theJson<T>
andText<T>
adapters have no reasonable way to predict or estimate the final encoded size, so they just returnsize_of::<T>()
instead.For web application backends, consider adding some middleware that limits the size of request bodies by default.
Resolution
Work has started on a branch to add
#[deny]
directives for the following Clippy lints:cast_possible_truncation
cast_possible_wrap
cast_sign_loss
and to manually audit the code that they flag.
A fix is expected to be included in the
0.8.1
release (still WIP as of writing).Release Notes
launchbadge/sqlx (sqlx)
### [`v0.8.1`](https://redirect.github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#081---2024-08-23) [Compare Source](https://redirect.github.com/launchbadge/sqlx/compare/v0.8.0...v0.8.1) 16 pull requests were merged this release cycle. This release contains a fix for [RUSTSEC-2024-0363]. Postgres users are advised to upgrade ASAP as a possible exploit has been demonstrated: [#3440 (comment)](https://redirect.github.com/launchbadge/sqlx/issues/3440#issuecomment-2307956901) MySQL and SQLite do not *appear* to be exploitable, but upgrading is recommended nonetheless. ##### Added - \[[#3421]]: correct spelling of `MySqlConnectOptions::no_engine_substitution()` \[\[[@kolinfluence](https://redirect.github.com/kolinfluence)]] - Deprecates `MySqlConnectOptions::no_engine_subsitution()` (oops) in favor of the correctly spelled version. ##### Changed - \[[#3376]]: doc: hide `spec_error` module \[\[[@abonander](https://redirect.github.com/abonander)]] - This is a helper module for the macros and was not meant to be exposed. - It is not expected to receive any breaking changes for the 0.8.x release, but is not designed as a public API. Use at your own risk. - \[[#3382]]: feat: bumped to `libsqlite3-sys=0.30.1` to support sqlite 3.46 \[\[[@CommanderStorm](https://redirect.github.com/CommanderStorm)]] - \[[#3385]]: chore(examples):Migrated the pg-chat example to ratatui \[\[[@CommanderStorm](https://redirect.github.com/CommanderStorm)]] - \[[#3399]]: Upgrade to rustls 0.23 \[\[[@djc](https://redirect.github.com/djc)]] - RusTLS now has pluggable cryptography providers: `ring` (the existing implementation), and `aws-lc-rs` which has optional FIPS certification. - The existing features activating RusTLS (`runtime-tokio-rustls`, `runtime-async-std-rustls`, `tls-rustls`) enable the `ring` provider of RusTLS to match the existing behavior so this *should not* be a breaking change. - Switch to the `tls-rustls-aws-lc-rs` feature to use the `aws-lc-rs` provider. - If using `runtime-tokio-rustls` or `runtime-async-std-rustls`, this will necessitate switching to the appropriate non-legacy runtime feature: `runtime-tokio` or `runtime-async-std` - See the RusTLS README for more details:Configuration
š Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
š¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
ā» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
š Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.