Rust advisories / libsqlite3-sys
Vulnerability HighRUSTSEC-2022-0090 · libsqlite3-sys
RUSTSEC-2022-0090: `libsqlite3-sys` via C SQLite CVE-2022-35737
Short answerA security vulnerability in the libsqlite3-sys crate: `libsqlite3-sys` via C SQLite CVE-2022-35737. High severity (CVSS 7.5). Fixed in 0.25.1: update to a fixed version.
| Crate | libsqlite3-sys |
|---|---|
| Type | Vulnerability (denial-of-service, code-execution) |
| Affected versions | Before 0.25.1. |
| Fixed in | 0.25.1 |
| Severity | High, CVSS 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2022-08-03 |
| Last changed | 2023-12-06 |
| Also known as | BIT-sqlite-2022-35737, CVE-2022-35737, GHSA-jw36-hf63-69r9 |
What to do
- See which version you have:
cargo tree -i libsqlite3-sys(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p libsqlite3-sys. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplelibsqlite3-sys = "0.25.1") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
It was sometimes possible for SQLite versions >= 1.0.12, < 3.39.2 to allow an array-bounds overflow when large string were input into SQLite's printf function.
As libsqlite3-sys bundles SQLite, it is susceptible to the vulnerability. libsqlite3-sys was updated to bundle the patched version of SQLite here.
References
- Package: crates.io/crates/libsqlite3-sys
- Advisory: rustsec.org/advisories/RUSTSEC-2022-0090.html
- Web: nvd.nist.gov/vuln/detail/CVE-2022-35737
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Same cratelibsqlite3-sys: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?