PT-2020-17500 · Rust · Rusqlite
Published
2020-04-23
·
Updated
2022-01-04
·
CVE-2020-35868
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
An issue was discovered in the rusqlite crate where memory safety can be violated through various means, including use-after-free errors in Auxdata API, UnlockNotification, VTab / VTabCursor, and sessions.rs. Additionally, issues were found in the repr(Rust) type and the rusqlite::trace::log function's handling of format strings. There is also a data race in the Auxdata API and an issue with the create module function.
Recommendations
For versions prior to 0.23.0, update to version 0.23.0 or later to resolve the issue. As a temporary workaround, consider restricting the use of the Auxdata API, UnlockNotification, VTab / VTabCursor, sessions.rs, repr(Rust) type, rusqlite::trace::log function, and create module function until a patch is available.
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