SBOM: assembly metadata is not mapped to NuGet ids/versions, so CVE matching finds nothing #460

Closed
opened 2026-10-05 20:49:10 +00:00 by sharang · 1 comment
Owner

126 SBOM entries from a .NET Framework codebase, 0 known vulnerabilities. Not plausible: e.g. DotNetZip 1.9.1.5 is listed and should match CVE-2024-48510 (GHSA-xhg6-9j5j-w4vf, path traversal; verify against OSV).

Cause (likely): many entries come from DLL/assembly metadata, not package manifests:

  • names are product names, not NuGet ids (DotNetZip Library, Json.NET, Helix Toolkit, Xceed Toolkit for WPF, empira MigraDoc)
  • versions are file/assembly versions (6.400.420.21404, 13.0.1.25517, 2.5.1+Branch.origin/master.Sha…)
  • duplicates of the same package from csproj + DLL (HelixToolkit 2.20.0 / Helix Toolkit 2.20.0+…)
  • some land as ecosystem unknown

Tasks

  • Map assembly name → NuGet id (assembly name / known aliases / .nuspec in packages/ when present; fall back to the DLL's own AssemblyName)
  • Normalize versions (4-part assembly version → NuGet semver; strip +build metadata)
  • Deduplicate per (id, version), keep the source(s) as evidence
  • Fixture test: DotNetZip 1.9.1.5 produces the CVE alert
  • Report entries that stay unmapped instead of silently matching nothing

Source: first pilot scans on prod (2026-10-05), .NET Framework / Android repos. Fixes start after the remaining pilot scans are in.

126 SBOM entries from a .NET Framework codebase, **0 known vulnerabilities**. Not plausible: e.g. `DotNetZip` 1.9.1.5 is listed and should match CVE-2024-48510 (GHSA-xhg6-9j5j-w4vf, path traversal; verify against OSV). Cause (likely): many entries come from DLL/assembly metadata, not package manifests: - names are product names, not NuGet ids (`DotNetZip Library`, `Json.NET`, `Helix Toolkit`, `Xceed Toolkit for WPF`, `empira MigraDoc`) - versions are file/assembly versions (`6.400.420.21404`, `13.0.1.25517`, `2.5.1+Branch.origin/master.Sha…`) - duplicates of the same package from csproj + DLL (`HelixToolkit` 2.20.0 / `Helix Toolkit 2.20.0+…`) - some land as ecosystem `unknown` ## Tasks - Map assembly name → NuGet id (assembly name / known aliases / `.nuspec` in `packages/` when present; fall back to the DLL's own `AssemblyName`) - Normalize versions (4-part assembly version → NuGet semver; strip `+build` metadata) - Deduplicate per (id, version), keep the source(s) as evidence - Fixture test: DotNetZip 1.9.1.5 produces the CVE alert - Report entries that stay unmapped instead of silently matching nothing _Source: first pilot scans on prod (2026-10-05), .NET Framework / Android repos. Fixes start after the remaining pilot scans are in._
sharang added the bughigh labels 2026-10-05 20:49:10 +00:00
Author
Owner

Verified against OSV (2026-10-05):

purl as we store it OSV hits
pkg:nuget/DotNetZip%20Library@1.9.1.5 (from DLL metadata) 0
pkg:nuget/DotNetZip@1.9.1.5 (real NuGet id) 1: GHSA-7378-6268-4278
pkg:nuget/Json.NET@13.0.1.25517 0 (correct id/version: Newtonsoft.Json 13.0.1, also clean)

Entries from csproj/packages.config with real ids (MQTTnet 3.1.2, log4net 3.3.2, System.Net.Http 4.3.4, EF 6.4.4, BouncyCastle 2.7.0, …) are correctly clean. The miss is only in the DLL-metadata path: product name in the purl, 4-part file version. 124/126 entries have a purl, so it's the id, not a missing purl.

Verified against OSV (2026-10-05): | purl as we store it | OSV hits | |---|---| | `pkg:nuget/DotNetZip%20Library@1.9.1.5` (from DLL metadata) | 0 | | `pkg:nuget/DotNetZip@1.9.1.5` (real NuGet id) | 1: GHSA-7378-6268-4278 | | `pkg:nuget/Json.NET@13.0.1.25517` | 0 (correct id/version: Newtonsoft.Json 13.0.1, also clean) | Entries from csproj/packages.config with real ids (MQTTnet 3.1.2, log4net 3.3.2, System.Net.Http 4.3.4, EF 6.4.4, BouncyCastle 2.7.0, …) are correctly clean. The miss is only in the DLL-metadata path: product name in the purl, 4-part file version. 124/126 entries have a purl, so it's the id, not a missing purl.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#460