PT-2020-17502 · Rust · Rusqlite

Published

2020-04-23

·

Updated

2022-01-04

·

CVE-2020-35870

CVSS v3.1

9.8

Critical

VectorAV: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 via various means, including use-after-free in the Auxdata API, UnlockNotification, VTab / VTabCursor, sessions.rs, the repr(Rust) type, and rusqlite::trace::log mishandling format strings. Additionally, a data race in the Auxdata API and an issue in create module 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 use of the Auxdata API, UnlockNotification, VTab / VTabCursor, sessions.rs, the repr(Rust) type, rusqlite::trace::log, and create module until a patch is available. Restrict access to the vulnerable components to minimize the risk of exploitation.

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 👾

Weakness Enumeration

Related Identifiers

CVE-2020-35870
GHSA-28PH-F7GX-FQJ8
GHSA-3CGF-9M6X-PWWR
GHSA-6Q5W-M3C5-RV95
GHSA-8H4J-VM3R-VCQ3
GHSA-8R7Q-R9MX-35RH
GHSA-G4W7-3QR8-5623
GHSA-Q3CC-7P7G-392C
GHSA-RJH8-P66P-JRH5
RUSTSEC-2020-0014

Affected Products

Rusqlite