Skip to content

deps: bundled SQLite is affected by RUSTSEC-2026-0459 #196

Closed

Description

@fieldmouseworks-workers

advisory-watch (osv-scanner) flagged RUSTSEC-2026-0459 / CVE-2026-119375 / GHSA-72w2-rjgg-q729 (CVSS 6.8) in libsqlite3-sys 0.37.0.

What it is: SQLite before 3.54.0 can return uninitialized page-cache memory when a database is opened together with a sibling -wal file whose page size differs. Patched in libsqlite3-sys >= 0.39.0 (SQLite 3.54.x).

Why it applies here: sqlx's sqlite feature turns on sqlite-bundled, so the server compiles the bundled SQLite 3.53.x into the executable. The server also opens database files outside its own data directory: restores and backup-copy checks read files from backup-copy directories, which may be less trusted.

Why there's no plain bump: sqlx-sqlite 0.9.0 (the latest release) requires libsqlite3-sys >=0.30.1, <0.38.0. Upstream raised the cap to <0.40.0 in transact-rs/sqlx#4502 (10462fa4), but that change isn't in a release yet.

Plan: add a [patch.crates-io] that pins the sqlx crates to upstream 10462fa4, and lock libsqlite3-sys 0.39.1 (SQLite 3.54.1). Remove the patch once a sqlx release includes #4502.

Done when: Cargo.lock has libsqlite3-sys >= 0.39 and the full gate sequence passes on the candidate.

Authorization: advisory-watch job on remi, under the owner's standing authority (2026-10-24). No effort budget set by the owner.

Activity

  1. fieldmouseworks-workers commented on Nov 9, 2026

    @fieldmouseworks-workers
    ContributorAuthor

    Fixed by #197, merged as 82db244. Cargo.lock on main (655f6ef) has libsqlite3-sys 0.39.1 (SQLite 3.54.1). Removing the temporary sqlx git patch is #200; the load-dependent e2e timeout seen in local proof is #199.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions