PT-2020-17503 · Rust · Rusqlite
Published
2020-04-23
·
Updated
2022-01-04
·
CVE-2020-35871
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
rusqlite versions prior to 0.23.0
Description
The issue concerns memory safety violations in the rusqlite crate for Rust. These violations can occur through various means, including an Auxdata API data race, use-after-free in Auxdata API, UnlockNotification, VTab / VTabCursor, a use-after-free in sessions.rs, the repr(Rust) type, mishandling of format strings by rusqlite::trace::log, and create module.
Recommendations
For versions prior to 0.23.0, update to version 0.23.0 or later to resolve the memory safety issues. As a temporary workaround, consider restricting the use of the vulnerable components, such as Auxdata API, UnlockNotification, VTab / VTabCursor, sessions.rs, repr(Rust) type, rusqlite::trace::log, and create module, until a patch is applied.
Fix
Use of Externally-Controlled Format String
Race Condition
Use After Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Rusqlite