Skip to content

Commit f04ccb7

Browse files
[#100] Update SQLite to 3.53.3 to mitigate CVE-2025-6965 (#133)
Bump Microsoft.Data.Sqlite from 9.0.1 to 9.0.20 in Analyzer and ReferenceFinder. 9.0.20 requires SQLitePCLRaw.bundle_e_sqlite3 2.1.12, which bundles SQLite 3.53.3 -- past the 3.50.2 fix for CVE-2025-6965 (and the 3.53.2 fix for the FTS5 memory-corruption CVEs). No explicit SQLitePCLRaw pin is needed. When this was first investigated the newest native package carried SQLite 3.49.1, still affected; 2.1.12 shipped in July 2026 and Microsoft.Data.Sqlite 9.0.19+ depends on it. The 2.1.12 native build is compiled with SQLITE_DQS=0, so double-quoted string literals no longer fall back from a failed identifier lookup. Production SQL was already clean, but four literals in AddressablesBuildLayoutTests needed converting to single quotes. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent e112a21 commit f04ccb7

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎Analyzer/Analyzer.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="Microsoft.Data.SQLite" Version="9.0.1" />
17+
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.20" />
1818
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
1919
</ItemGroup>
2020

‎ReferenceFinder/ReferenceFinder.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</PropertyGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.1" />
20+
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.20" />
2121
</ItemGroup>
2222

2323
</Project>

‎UnityDataTool.Tests/AddressablesBuildLayoutTests.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ public async Task Analyze_BuildLayout_ContainsExpectedSQLContent()
5050
// Sanity check some expected content in the output SQLite database
5151
SQLTestHelper.AssertQueryInt(db, "SELECT COUNT(*) FROM addressables_builds", 2,
5252
"Unexpected number of builds");
53-
SQLTestHelper.AssertQueryInt(db, "SELECT COUNT(*) FROM addressables_builds WHERE name = \"buildlayout_2025.01.28.16.35.01.json\"", 1,
53+
SQLTestHelper.AssertQueryInt(db, "SELECT COUNT(*) FROM addressables_builds WHERE name = 'buildlayout_2025.01.28.16.35.01.json'", 1,
5454
"Failed to find build matching reference filename");
5555
SQLTestHelper.AssertQueryString(db, "SELECT unity_version FROM addressables_builds WHERE id = 1", "6000.1.0b2",
5656
"Unexpected Unity Version");
5757
SQLTestHelper.AssertQueryString(db, "SELECT package_version FROM addressables_builds WHERE id = 1", "com.unity.addressables: 2.2.2",
5858
"Unexpected Addressables version");
59-
SQLTestHelper.AssertQueryInt(db, "SELECT COUNT(*) FROM addressables_build_bundles WHERE build_id = 1 and name = \"samplepack1_assets_0.bundle\"", 1,
59+
SQLTestHelper.AssertQueryInt(db, "SELECT COUNT(*) FROM addressables_build_bundles WHERE build_id = 1 and name = 'samplepack1_assets_0.bundle'", 1,
6060
"Expected to find specific AssetBundle by name");
61-
SQLTestHelper.AssertQueryInt(db, "SELECT file_size FROM addressables_build_bundles WHERE build_id = 2 and name = \"samplepack1_assets_0.bundle\"", 33824,
61+
SQLTestHelper.AssertQueryInt(db, "SELECT file_size FROM addressables_build_bundles WHERE build_id = 2 and name = 'samplepack1_assets_0.bundle'", 33824,
6262
"Unexpected size for specific AssetBundle in build 2");
63-
SQLTestHelper.AssertQueryString(db, "SELECT packing_mode FROM addressables_build_groups WHERE build_id = 1 and name = \"SamplePack1\"", "PackSeparately",
63+
SQLTestHelper.AssertQueryString(db, "SELECT packing_mode FROM addressables_build_groups WHERE build_id = 1 and name = 'SamplePack1'", "PackSeparately",
6464
"Unexpected packing_mode for group");
6565
SQLTestHelper.AssertQueryInt(db, "SELECT COUNT(*) FROM archives", 0,
6666
"Expected no AssetBundles found in reference folder");

0 commit comments

Comments
 (0)