Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Remove temporary SQLitePCLRaw.lib.e_sqlite3 3.50.3 security override once Microsoft.Data.Sqlite ships the CVE-2025-6965 fix #604

Closed

Description

Summary

Directory.Packages.props currently carries a temporary security override that pins the native
SQLitePCLRaw.lib.e_sqlite3 package to 3.50.3. This issue tracks the upstream fixes so we can
remove the override once Microsoft.Data.Sqlite / Microsoft.EntityFrameworkCore.Sqlite ship a
release that pulls a non-vulnerable native SQLite bundle on their own.

Background

Microsoft.Data.Sqlite and Microsoft.EntityFrameworkCore.Sqlite 10.0.9 transitively resolve:

Microsoft.Data.Sqlite (10.0.9) ─┐
                                 ├─► SQLitePCLRaw.bundle_e_sqlite3 (2.1.11)
Microsoft.EntityFrameworkCore.   │       └─► SQLitePCLRaw.lib.e_sqlite3 (2.1.11)   ← SQLite < 3.50.2
  Sqlite (10.0.9) ───────────────┘

SQLitePCLRaw.lib.e_sqlite3 <= 2.1.11 bundles a SQLite build affected by
CVE-2025-6965 (High). There is no 2.1.x patch —
the fix is a major bump to SQLitePCLRaw 3.x, which Microsoft.Data.Sqlite 10.0.9 does not reference.

Current override (what to remove later)

In Directory.Packages.props:

  • <CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
  • <PackageVersion Include="SQLitePCLRaw.lib.e_sqlite3" Version="3.50.3" />

This bumps only the native binary to SQLite 3.50.3 (the lib.e_sqlite3 3.50.3 package has no
managed dependencies), keeping the SQLitePCLRaw 2.x managed core that Microsoft.Data.Sqlite 10.0.9 was
built against. It clears CVE-2025-6965 without moving to the SQLitePCLRaw 3.x core.

Upstream tracking

Repo Item State Notes
ericsink/SQLitePCL.raw #636 Closed Fixed in SQLitePCLRaw 3.0; native lib version decoupled.
dotnet/efcore #38257 — SQLite vulnerabilities Open Live tracking issue (Microsoft.Data.Sqlite lives in efcore).
dotnet/efcore PR #38402 Merged Switches Sqlite packages to a non-vulnerable bundle. Milestone 11.0-preview6.

ETA: the official fix ships in Microsoft.Data.Sqlite / EF Core 11.0-preview6. No confirmed
10.x / 8.x servicing backport yet.

Done when

  • Microsoft.Data.Sqlite + Microsoft.EntityFrameworkCore.Sqlite upgraded to a release that
    transitively resolves a non-vulnerable native SQLite (>= 3.50.2) on its own.
  • SQLitePCLRaw.lib.e_sqlite3 PackageVersion pin removed from Directory.Packages.props.
  • CentralPackageTransitivePinningEnabled removed if nothing else relies on it.
  • dotnet nuget why <project> SQLitePCLRaw.lib.e_sqlite3 re-verified to show a non-vulnerable
    version, and the NuGet vulnerability warning is gone.

Activity

  1. added
    pending external
    on Jun 19, 2026
  2. added a commit that references this issue on Jun 19, 2026
  3. jschick04 commented on Sep 14, 2026

    @jschick04
    CollaboratorAuthor

    Opened #720 (draft) to remove the temporary override.

    The upstream fix has shipped on the stable channel, contrary to what this issue originally anticipated (the 11.0-preview line):

    • dotnet/efcore#38257 is closed / completed (milestone 10.0.11). The fix landed on the SQLitePCLRaw 2.x line as 2.1.12, and Microsoft.Data.Sqlite / Microsoft.EntityFrameworkCore.Sqlite 10.0.12 now transitively resolve bundle_e_sqlite3 2.1.12 -> lib.e_sqlite3 2.1.12 on their own.

    Evidence that removal is safe (and not a native downgrade):

    • The advisory range is SQLitePCLRaw.lib.e_sqlite3 <= 2.1.11, so 2.1.12 is out of range — a forced restore + build reports 0 vulnerability warnings under TreatWarningsAsErrors (the NU1903 is gone).
    • The 3.53.3 -> 2.1.12 entry in the dependency-graph diff is a versioning-scheme artifact, not a downgrade: the native e_sqlite3.dll shipped by lib.e_sqlite3 2.1.12 is SHA256-identical to the removed 3.53.3 override (both SQLite 3.53.3). For reference, 2.1.11 was SQLite 3.49.1 (< 3.50.2, hence vulnerable).

    #720 removes the SQLitePCLRaw.lib.e_sqlite3 pin and CentralPackageTransitivePinningEnabled, satisfying the "Done when" checklist, and will close this issue on merge.

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

    pending external

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions