Skip to content

Commit d5e31f5

Browse files
MarcelRoozekransMarcelRoozekransclaude
authored
fix(deps): pin SQLitePCLRaw.lib.e_sqlite3 to 3.50.3 (CVE-2025-6965) (#122)
The Sqlite-backed test projects pull SQLitePCLRaw.lib.e_sqlite3 2.1.11 transitively via Microsoft.Data.Sqlite. It bundles SQLite < 3.50.2 and is flagged by GHSA-2m69-gcr7-jv3q (CVE-2025-6965); NuGetAudit raises NU1903, failing the build under TreatWarningsAsErrors. Pin the native binary to 3.50.3 (SQLite 3.50.3) in the four affected test projects only; shipping libraries are untouched. core/provider stay on 2.x (the sqlite3 C ABI is stable). Revert once Microsoft.Data.Sqlite ships a bumped SQLitePCLRaw. Co-authored-by: MarcelRoozekrans <claude@roozekrans.nl> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0265035 commit d5e31f5

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

tests/System.Data.Async.Adapters.Tests/System.Data.Async.Adapters.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
<PackageReference Include="NSubstitute" Version="5.*" />
1818
<PackageReference Include="FluentAssertions" Version="8.1*" />
1919
<PackageReference Include="Microsoft.Data.Sqlite" Version="10.*" />
20+
<!-- CVE-2025-6965 / GHSA-2m69-gcr7-jv3q: override the vulnerable native SQLite
21+
binary (SQLitePCLRaw.lib.e_sqlite3 2.1.11, SQLite < 3.50.2) pulled in
22+
transitively by Microsoft.Data.Sqlite. 3.50.3 ships SQLite 3.50.3. -->
23+
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3" Version="3.50.3" />
2024
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.*" />
2125
</ItemGroup>
2226
</Project>

tests/System.Data.Async.AotSmoke/System.Data.Async.AotSmoke.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
the in-memory connection string keeps the smoke test hermetic — no Docker, no
3030
disk I/O, no service container required from the CI runner. -->
3131
<PackageReference Include="Microsoft.Data.Sqlite" Version="10.*" />
32+
<!-- CVE-2025-6965 / GHSA-2m69-gcr7-jv3q: override the vulnerable native SQLite
33+
binary (SQLitePCLRaw.lib.e_sqlite3 2.1.11, SQLite < 3.50.2) pulled in
34+
transitively by Microsoft.Data.Sqlite. 3.50.3 ships SQLite 3.50.3. -->
35+
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3" Version="3.50.3" />
3236
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.*" />
3337
</ItemGroup>
3438
</Project>

tests/System.Data.Async.Benchmarks/System.Data.Async.Benchmarks.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@
2020
<ItemGroup>
2121
<PackageReference Include="BenchmarkDotNet" Version="0.1*" />
2222
<PackageReference Include="Microsoft.Data.Sqlite" Version="10.*" />
23+
<!-- CVE-2025-6965 / GHSA-2m69-gcr7-jv3q: override the vulnerable native SQLite
24+
binary (SQLitePCLRaw.lib.e_sqlite3 2.1.11, SQLite < 3.50.2) pulled in
25+
transitively by Microsoft.Data.Sqlite. 3.50.3 ships SQLite 3.50.3. -->
26+
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3" Version="3.50.3" />
2327
</ItemGroup>
2428
</Project>

tests/System.Data.Async.Validation.Tests/System.Data.Async.Validation.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<PackageReference Include="xunit.runner.visualstudio" Version="3.*" />
1616
<PackageReference Include="FluentAssertions" Version="8.1*" />
1717
<PackageReference Include="Microsoft.Data.Sqlite" Version="10.*" />
18+
<!-- CVE-2025-6965 / GHSA-2m69-gcr7-jv3q: override the vulnerable native SQLite
19+
binary (SQLitePCLRaw.lib.e_sqlite3 2.1.11, SQLite < 3.50.2) pulled in
20+
transitively by Microsoft.Data.Sqlite. 3.50.3 ships SQLite 3.50.3. -->
21+
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3" Version="3.50.3" />
1822
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
1923
</ItemGroup>
2024
</Project>

0 commit comments

Comments
 (0)