PT-2020-17499 · Rust · Rusqlite
Published
2020-04-23
·
Updated
2022-01-04
·
CVE-2020-35867
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 for Rust, where memory safety can be violated via various means, including create module, Auxdata API use-after-free, UnlockNotification, VTab / VTabCursor, sessions.rs use-after-free, the repr(Rust) type, and rusqlite::trace::log mishandling format strings. Additionally, an Auxdata API data race can also lead to memory safety violations.
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 disabling the
create module function, Auxdata API, UnlockNotification, VTab / VTabCursor, and rusqlite::trace::log until a patch is available.
Restrict access to the sessions.rs and repr(Rust) type to minimize the risk of exploitation.
Avoid using the Auxdata API in a way that could lead to a data race until the issue is resolved.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