GHSA-8r7q-r9mx-35rh

Suggest an improvement
Source
https://github.com/advisories/GHSA-8r7q-r9mx-35rh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-8r7q-r9mx-35rh/GHSA-8r7q-r9mx-35rh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8r7q-r9mx-35rh
Aliases
Published
2021-08-25T20:47:18Z
Modified
2024-03-15T00:05:20.033730Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Mishandling of format strings in rusqlite
Details

An issue was discovered in the rusqlite crate before 0.23.0 for Rust. Memory safety can be violated because rusqlite::trace::log mishandles format strings.

Database specific
{
    "nvd_published_at": "2020-12-31T10:15:00Z",
    "cwe_ids": [
        "CWE-134"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T21:18:40Z"
}
References

Affected packages

crates.io / rusqlite

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.23.0

Ecosystem specific

{
    "affected_functions": [
        "rusqlite::Connection::get_aux",
        "rusqlite::Connection::set_aux",
        "rusqlite::session::Session::attach",
        "rusqlite::session::Session::diff",
        "rusqlite::trace::log",
        "rusqlite::vtab::create_module"
    ]
}